The function is now referenced only within util/virxml.c other callers should not use it directly. Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx> --- src/libvirt_private.syms | 1 - src/util/virxml.c | 2 +- src/util/virxml.h | 4 ---- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index 61003eff39..7150e87c38 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -3690,7 +3690,6 @@ virXMLValidateAgainstSchema; virXMLValidatorFree; virXMLValidatorInit; virXMLValidatorValidate; -virXMLXPathContextNew; virXPathBoolean; virXPathContextNodeRestore; virXPathInt; diff --git a/src/util/virxml.c b/src/util/virxml.c index d99b060b63..de7b7a095d 100644 --- a/src/util/virxml.c +++ b/src/util/virxml.c @@ -48,7 +48,7 @@ struct virParserData { }; -xmlXPathContextPtr +static xmlXPathContextPtr virXMLXPathContextNew(xmlDocPtr xml) { xmlXPathContextPtr ctxt; diff --git a/src/util/virxml.h b/src/util/virxml.h index 6d61d91497..8a03077695 100644 --- a/src/util/virxml.h +++ b/src/util/virxml.h @@ -30,10 +30,6 @@ #include "virbuffer.h" #include "virenum.h" -xmlXPathContextPtr virXMLXPathContextNew(xmlDocPtr xml) - G_GNUC_WARN_UNUSED_RESULT; - - typedef enum { VIR_XML_PROP_NONE = 0, VIR_XML_PROP_REQUIRED = 1 << 0, /* Attribute may not be absent */ -- 2.37.3