Bug 1232219 (part 2.5) - Fix -Wunused warnings in parser/expat/lib/. r=hsivonen.

--HG--
extra : rebase_source : 9233441457728a336aa358037a1a8abebb759193
This commit is contained in:
Nicholas Nethercote 2015-12-16 22:56:34 -08:00
Родитель 13900c6d32
Коммит b921f6cb7f
1 изменённых файлов: 16 добавлений и 5 удалений

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

@ -390,8 +390,10 @@ setContext(XML_Parser parser, const XML_Char *context);
static void FASTCALL normalizePublicId(XML_Char *s);
static DTD * dtdCreate(const XML_Memory_Handling_Suite *ms);
/* BEGIN MOZILLA CHANGE (unused API) */
/* do not call if parentParser != NULL */
static void dtdReset(DTD *p, const XML_Memory_Handling_Suite *ms);
//static void dtdReset(DTD *p, const XML_Memory_Handling_Suite *ms);
/* END MOZILLA CHANGE */
static void
dtdDestroy(DTD *p, XML_Bool isDocEntity, const XML_Memory_Handling_Suite *ms);
static int
@ -403,7 +405,9 @@ static NAMED *
lookup(HASH_TABLE *table, KEY name, size_t createSize);
static void FASTCALL
hashTableInit(HASH_TABLE *, const XML_Memory_Handling_Suite *ms);
static void FASTCALL hashTableClear(HASH_TABLE *);
/* BEGIN MOZILLA CHANGE (unused API) */
//static void FASTCALL hashTableClear(HASH_TABLE *);
/* END MOZILLA CHANGE */
static void FASTCALL hashTableDestroy(HASH_TABLE *);
static void FASTCALL
hashTableIterInit(HASH_TABLE_ITER *, const HASH_TABLE *);
@ -878,6 +882,8 @@ parserInit(XML_Parser parser, const XML_Char *encodingName)
#endif
}
/* BEGIN MOZILLA CHANGE (unused API) */
#if 0
/* moves list of bindings to freeBindingList */
static void FASTCALL
moveToFreeBindingList(XML_Parser parser, BINDING *bindings)
@ -890,8 +896,6 @@ moveToFreeBindingList(XML_Parser parser, BINDING *bindings)
}
}
/* BEGIN MOZILLA CHANGE (unused API) */
#if 0
XML_Bool XMLCALL
XML_ParserReset(XML_Parser parser, const XML_Char *encodingName)
{
@ -2988,7 +2992,6 @@ storeAtts(XML_Parser parser, const ENCODING *enc,
static const XML_Char xmlnsPrefix[] = {
'x', 'm', 'l', 'n', 's', '\0'
};
XML_Bool appendXMLNS = XML_TRUE;
((XML_Char *)s)[-1] = 0; /* clear flag */
if (!poolAppendString(&tempPool, xmlnsNamespace)
@ -5716,6 +5719,8 @@ dtdCreate(const XML_Memory_Handling_Suite *ms)
return p;
}
/* BEGIN MOZILLA CHANGE (unused API) */
#if 0
static void
dtdReset(DTD *p, const XML_Memory_Handling_Suite *ms)
{
@ -5757,6 +5762,8 @@ dtdReset(DTD *p, const XML_Memory_Handling_Suite *ms)
p->hasParamEntityRefs = XML_FALSE;
p->standalone = XML_FALSE;
}
#endif
/* END MOZILLA CHANGE */
static void
dtdDestroy(DTD *p, XML_Bool isDocEntity, const XML_Memory_Handling_Suite *ms)
@ -6084,6 +6091,8 @@ lookup(HASH_TABLE *table, KEY name, size_t createSize)
return table->v[i];
}
/* BEGIN MOZILLA CHANGE (unused API) */
#if 0
static void FASTCALL
hashTableClear(HASH_TABLE *table)
{
@ -6094,6 +6103,8 @@ hashTableClear(HASH_TABLE *table)
}
table->used = 0;
}
#endif
/* END MOZILLA CHANGE */
static void FASTCALL
hashTableDestroy(HASH_TABLE *table)