From bdc8e1c546f76be969b6da9ee9f5054c1f2566eb Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Thu, 25 Sep 2025 19:36:37 +0100 Subject: [PATCH] Remove unused function lab_xml_get_node() --- include/common/xml.h | 1 - src/common/xml.c | 6 ------ 2 files changed, 7 deletions(-) diff --git a/include/common/xml.h b/include/common/xml.h index 8b49d0e4..16c319ec 100644 --- a/include/common/xml.h +++ b/include/common/xml.h @@ -30,7 +30,6 @@ void lab_xml_expand_dotted_attributes(xmlNode *root); /* Returns true if the node only contains a string or is empty */ bool lab_xml_node_is_leaf(xmlNode *node); -bool lab_xml_get_node(xmlNode *node, const char *key, xmlNode **dst_node); bool lab_xml_get_string(xmlNode *node, const char *key, char *s, size_t len); bool lab_xml_get_int(xmlNode *node, const char *key, int *i); bool lab_xml_get_bool(xmlNode *node, const char *key, bool *b); diff --git a/src/common/xml.c b/src/common/xml.c index 4868d7ed..7e089267 100644 --- a/src/common/xml.c +++ b/src/common/xml.c @@ -164,12 +164,6 @@ get_node(xmlNode *node, const char *key, xmlNode **dst_node, bool leaf_only) return false; } -bool -lab_xml_get_node(xmlNode *node, const char *key, xmlNode **dst_node) -{ - return get_node(node, key, dst_node, /* leaf_only */ false); -} - bool lab_xml_get_string(xmlNode *node, const char *key, char *s, size_t len) {