1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-27 14:03:36 +03:00

parser: Mark more parser context members as unused

This commit is contained in:
Nick Wellnhofer 2023-12-26 03:27:23 +01:00
parent 6a9a88a17f
commit a5dcf0f422
2 changed files with 4 additions and 6 deletions

View File

@ -226,7 +226,7 @@ struct _xmlParserCtxt {
int validate; /* shall we try to validate ? */
xmlValidCtxt vctxt; /* The validity context */
xmlParserInputState instate; /* current type of input */
xmlParserInputState instate; /* push parser state */
int token; /* next char look-ahead */
char *directory; /* unused */
@ -253,7 +253,7 @@ struct _xmlParserCtxt {
int * spaceTab; /* array of space infos */
int depth; /* to prevent entity substitution loops */
xmlParserInputPtr entity; /* used to check entities boundaries */
xmlParserInputPtr entity; /* unused */
int charset; /* unused */
int nodelen; /* Those two fields are there to */
int nodemem; /* Speed up large node parsing */
@ -268,7 +268,7 @@ struct _xmlParserCtxt {
xmlDictPtr dict; /* dictionary for the parser */
const xmlChar * *atts; /* array for the attributes callbacks */
int maxatts; /* the size of the array */
int docdict; /* use strings from dict to build tree */
int docdict; /* unused */
/*
* pre-interned strings
@ -306,7 +306,7 @@ struct _xmlParserCtxt {
xmlError lastError;
xmlParserMode parseMode; /* the parser mode */
unsigned long nbentities; /* unused */
unsigned long sizeentities; /* size of parsed entities */
unsigned long sizeentities; /* size of external entities */
/* for use by HTML non-recursive parser */
xmlParserNodeInfo *nodeInfo; /* Current NodeInfo */

View File

@ -2078,7 +2078,6 @@ xmlNewTextReader(xmlParserInputBufferPtr input, const char *URI) {
/*
* use the parser dictionary to allocate all elements and attributes names
*/
ret->ctxt->docdict = 1;
ret->dict = ret->ctxt->dict;
#ifdef LIBXML_XINCLUDE_ENABLED
ret->xinclude = 0;
@ -4887,7 +4886,6 @@ xmlTextReaderSetup(xmlTextReaderPtr reader,
/*
* use the parser dictionary to allocate all elements and attributes names
*/
reader->ctxt->docdict = 1;
reader->ctxt->parseMode = XML_PARSE_READER;
#ifdef LIBXML_XINCLUDE_ENABLED