diff --git a/ext/soap/php_xml.c b/ext/soap/php_xml.c index ca21cf42e5e..f3b8e18f7dd 100644 --- a/ext/soap/php_xml.c +++ b/ext/soap/php_xml.c @@ -35,7 +35,7 @@ static bool is_blank(const xmlChar* str) return true; } -/* removes all empty text, comments and other insignoficant nodes */ +/* removes all empty text, comments and other insignificant nodes */ static void cleanup_xml_node(xmlNodePtr node) { xmlNodePtr trav; @@ -243,22 +243,6 @@ xmlNodePtr get_node_ex(xmlNodePtr node, const char *name, const char *ns) return NULL; } -xmlNodePtr get_node_recurisve_ex(xmlNodePtr node, const char *name, const char *ns) -{ - while (node != NULL) { - if (node_is_equal_ex(node, name, ns)) { - return node; - } else if (node->children != NULL) { - xmlNodePtr tmp = get_node_recurisve_ex(node->children, name, ns); - if (tmp) { - return tmp; - } - } - node = node->next; - } - return NULL; -} - xmlNodePtr get_node_with_attribute_ex(xmlNodePtr node, const char *name, const char *name_ns, const char *attribute, const char *value, const char *attr_ns) { xmlAttrPtr attr;