From: Peter Krempa Date: Tue, 4 Oct 2022 14:18:16 +0000 (+0200) Subject: util: xml: Remove unused 'virXPathLongHex' X-Git-Tag: v8.10.0-rc1~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3f7165889321c68410f25d8e9dcb2a694e47350;p=thirdparty%2Flibvirt.git util: xml: Remove unused 'virXPathLongHex' Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index 7150e87c38..c6445dedcb 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -3694,7 +3694,6 @@ virXPathBoolean; virXPathContextNodeRestore; virXPathInt; virXPathLong; -virXPathLongHex; virXPathLongLong; virXPathNode; virXPathNodeSet; diff --git a/src/util/virxml.c b/src/util/virxml.c index 16e7ef9808..e771471dd7 100644 --- a/src/util/virxml.c +++ b/src/util/virxml.c @@ -173,28 +173,6 @@ virXPathLong(const char *xpath, } -/** - * virXPathLongHex: - * @xpath: the XPath string to evaluate - * @ctxt: an XPath context - * @value: the returned long value - * - * Convenience function to evaluate an XPath number - * according to a base of 16 - * - * Returns 0 in case of success in which case @value is set, - * or -1 if the XPath evaluation failed or -2 if the - * value doesn't have a long format. - */ -int -virXPathLongHex(const char *xpath, - xmlXPathContextPtr ctxt, - long *value) -{ - return virXPathLongBase(xpath, ctxt, 16, value); -} - - static int virXPathULongBase(const char *xpath, xmlXPathContextPtr ctxt, diff --git a/src/util/virxml.h b/src/util/virxml.h index 8a03077695..fe07e2d223 100644 --- a/src/util/virxml.h +++ b/src/util/virxml.h @@ -71,10 +71,6 @@ virXPathLongLong(const char *xpath, xmlXPathContextPtr ctxt, long long *value); int -virXPathLongHex(const char *xpath, - xmlXPathContextPtr ctxt, - long *value); -int virXPathULongHex(const char *xpath, xmlXPathContextPtr ctxt, unsigned long *value);