diff --git a/src/xmldoc.cpp b/src/xmldoc.cpp index 5cf86180b9..2948770424 100644 --- a/src/xmldoc.cpp +++ b/src/xmldoc.cpp @@ -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() @@ -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 diff --git a/tests/parser/libxml_user.cpp b/tests/parser/libxml_user.cpp index 9372828827..0db953c784 100644 --- a/tests/parser/libxml_user.cpp +++ b/tests/parser/libxml_user.cpp @@ -60,9 +60,6 @@ TEST(Parser, parseValidXmlDirectlyUsingLibxml) xmlFreeDoc(doc); xmlSetStructuredErrorFunc(nullptr, nullptr); xmlCleanupParser(); -#if LIBXML_VERSION < 21200 - xmlCleanupGlobals(); -#endif } TEST(Parser, parseInvalidXmlDirectlyUsingLibxml) @@ -84,9 +81,6 @@ TEST(Parser, parseInvalidXmlDirectlyUsingLibxml) xmlFreeParserCtxt(context); xmlSetStructuredErrorFunc(nullptr, nullptr); xmlCleanupParser(); -#if LIBXML_VERSION < 21200 - xmlCleanupGlobals(); -#endif EXPECT_EQ(nullptr, doc); }