]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: xml: Remove unused 'virXPathLongHex'
authorPeter Krempa <pkrempa@redhat.com>
Tue, 4 Oct 2022 14:18:16 +0000 (16:18 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 1 Nov 2022 12:07:20 +0000 (13:07 +0100)
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt_private.syms
src/util/virxml.c
src/util/virxml.h

index 7150e87c3870fdbe9903e2e6bf0a9be0ab77fc65..c6445dedcbf4f1122ac8e8f025770170cdea9294 100644 (file)
@@ -3694,7 +3694,6 @@ virXPathBoolean;
 virXPathContextNodeRestore;
 virXPathInt;
 virXPathLong;
-virXPathLongHex;
 virXPathLongLong;
 virXPathNode;
 virXPathNodeSet;
index 16e7ef9808ad858ca5ccc5521125bdd57f544eb5..e771471dd7a89d3be0f6c6c9bffdea6e28e9b0a7 100644 (file)
@@ -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,
index 8a03077695b84bfddc90f91ac5395e66b1766bd7..fe07e2d22342440007d8c11d5e652ec7c7a70253 100644 (file)
@@ -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);