1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-01 10:06:59 +03:00

html: Remove unused epilog state

This commit is contained in:
Nick Wellnhofer
2025-02-01 00:36:12 +01:00
parent 70bf754e24
commit 12732592ef

View File

@ -5013,8 +5013,7 @@ htmlParseTryOrFinish(htmlParserCtxtPtr ctxt, int terminate) {
case XML_PARSER_MISC: case XML_PARSER_MISC:
case XML_PARSER_PROLOG: case XML_PARSER_PROLOG:
case XML_PARSER_CONTENT: case XML_PARSER_CONTENT: {
case XML_PARSER_EPILOG: {
int mode; int mode;
if ((ctxt->instate == XML_PARSER_MISC) || if ((ctxt->instate == XML_PARSER_MISC) ||
@ -5142,11 +5141,7 @@ htmlParseTryOrFinish(htmlParserCtxtPtr ctxt, int terminate) {
(htmlParseLookupGt(ctxt) < 0)) (htmlParseLookupGt(ctxt) < 0))
goto done; goto done;
htmlParseEndTag(ctxt); htmlParseEndTag(ctxt);
if (ctxt->nameNr == 0) { ctxt->instate = XML_PARSER_CONTENT;
ctxt->instate = XML_PARSER_EPILOG;
} else {
ctxt->instate = XML_PARSER_CONTENT;
}
ctxt->checkIndex = 0; ctxt->checkIndex = 0;
break; break;