Skip to content

Commit

Permalink
Removed calls to xmlCleanupGlobals().
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed May 28, 2024
1 parent 80c37fb commit db0788a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions src/xmldoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ void XmlDoc::parse(const std::string &input)
xmlFreeParserCtxt(context);
xmlSetStructuredErrorFunc(nullptr, nullptr);
xmlCleanupParser();
#if LIBXML_VERSION < 21200
xmlCleanupGlobals();
#endif
}

std::string decompressMathMLDTD()
Expand Down Expand Up @@ -137,9 +134,6 @@ void XmlDoc::parseMathML(const std::string &input)
xmlFreeParserCtxt(context);
xmlSetStructuredErrorFunc(nullptr, nullptr);
xmlCleanupParser();
#if LIBXML_VERSION < 21200
xmlCleanupGlobals();
#endif
}

std::string XmlDoc::prettyPrint() const
Expand Down
6 changes: 0 additions & 6 deletions tests/parser/libxml_user.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ TEST(Parser, parseValidXmlDirectlyUsingLibxml)
xmlFreeDoc(doc);
xmlSetStructuredErrorFunc(nullptr, nullptr);
xmlCleanupParser();
#if LIBXML_VERSION < 21200
xmlCleanupGlobals();
#endif
}

TEST(Parser, parseInvalidXmlDirectlyUsingLibxml)
Expand All @@ -84,9 +81,6 @@ TEST(Parser, parseInvalidXmlDirectlyUsingLibxml)
xmlFreeParserCtxt(context);
xmlSetStructuredErrorFunc(nullptr, nullptr);
xmlCleanupParser();
#if LIBXML_VERSION < 21200
xmlCleanupGlobals();
#endif

EXPECT_EQ(nullptr, doc);
}

0 comments on commit db0788a

Please sign in to comment.