Bug 1392185 - Remove dead code from nsHtml5ArrayCopy.h. r=hsivonen

Drive-by cleanup while I audited atom usage from the parser.

Differential Revision: https://phabricator.services.mozilla.com/D11033
This commit is contained in:
Emilio Cobos Álvarez 2018-11-09 14:27:59 +01:00
Родитель ed2c2ccfad
Коммит ed9deed211
1 изменённых файлов: 0 добавлений и 17 удалений

Просмотреть файл

@ -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)