diff --git a/parser/html/nsHtml5ArrayCopy.h b/parser/html/nsHtml5ArrayCopy.h
index 61acd59315df..35e0fc202b9b 100644
--- a/parser/html/nsHtml5ArrayCopy.h
+++ b/parser/html/nsHtml5ArrayCopy.h
@@ -23,10 +23,7 @@
#ifndef nsHtml5ArrayCopy_h
#define nsHtml5ArrayCopy_h
-#include "nsStringFwd.h"
-
class nsHtml5StackNode;
-class nsHtml5AttributeName;
// Unfortunately, these don't work as template functions because the arguments
// would need coercion from a template class, which complicates things.
@@ -56,20 +53,6 @@ public:
memcpy(target, source, size_t(length) * sizeof(int32_t));
}
- static inline void arraycopy(nsHtml5String* source,
- nsHtml5String* target,
- int32_t length)
- {
- memcpy(target, source, size_t(length) * sizeof(nsHtml5String));
- }
-
- static inline void arraycopy(nsHtml5AttributeName** source,
- nsHtml5AttributeName** target,
- int32_t length)
- {
- memcpy(target, source, size_t(length) * sizeof(nsHtml5AttributeName*));
- }
-
static inline void arraycopy(nsHtml5StackNode** source,
nsHtml5StackNode** target,
int32_t length)