Remove uncommented init/cleanup code

This is irrelevant and is done by ext/libxml.
This commit is contained in:
Niels Dossche 2025-05-28 23:53:06 +02:00
parent 564df33ac1
commit 21691cb19b

View file

@ -80,10 +80,6 @@ xmlDocPtr soap_xmlParseFile(const char *filename)
xmlDocPtr ret; xmlDocPtr ret;
bool old_allow_url_fopen; bool old_allow_url_fopen;
/*
xmlInitParser();
*/
old_allow_url_fopen = PG(allow_url_fopen); old_allow_url_fopen = PG(allow_url_fopen);
PG(allow_url_fopen) = 1; PG(allow_url_fopen) = 1;
ctxt = xmlCreateFileParserCtxt(filename); ctxt = xmlCreateFileParserCtxt(filename);
@ -120,10 +116,6 @@ xmlDocPtr soap_xmlParseFile(const char *filename)
ret = NULL; ret = NULL;
} }
/*
xmlCleanupParser();
*/
if (ret) { if (ret) {
cleanup_xml_node((xmlNodePtr)ret); cleanup_xml_node((xmlNodePtr)ret);
} }
@ -135,10 +127,6 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size)
xmlParserCtxtPtr ctxt = NULL; xmlParserCtxtPtr ctxt = NULL;
xmlDocPtr ret; xmlDocPtr ret;
/*
xmlInitParser();
*/
ctxt = xmlCreateMemoryParserCtxt(buf, buf_size); ctxt = xmlCreateMemoryParserCtxt(buf, buf_size);
if (ctxt) { if (ctxt) {
bool old; bool old;
@ -171,10 +159,6 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size)
ret = NULL; ret = NULL;
} }
/*
xmlCleanupParser();
*/
/* /*
if (ret) { if (ret) {
cleanup_xml_node((xmlNodePtr)ret); cleanup_xml_node((xmlNodePtr)ret);