[libvirt PATCH 3/3] util: remove virHexToBin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Now that it is no longer used.

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 src/libvirt_private.syms |  1 -
 src/util/virutil.c       | 15 ---------------
 src/util/virutil.h       |  2 --
 3 files changed, 18 deletions(-)

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 907cef2390..b268142d67 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -3408,7 +3408,6 @@ virGetUserID;
 virGetUserName;
 virGetUserRuntimeDirectory;
 virGetUserShell;
-virHexToBin;
 virHostGetDRMRenderNode;
 virHostHasIOMMU;
 virIndexToDiskName;
diff --git a/src/util/virutil.c b/src/util/virutil.c
index bdb79c7f1b..f77ee05dbf 100644
--- a/src/util/virutil.c
+++ b/src/util/virutil.c
@@ -164,21 +164,6 @@ int virSetSockReuseAddr(int fd, bool fatal)
 #endif
 
 
-/* Convert C from hexadecimal character to integer.  */
-int
-virHexToBin(unsigned char c)
-{
-    switch (c) {
-    default: return c - '0';
-    case 'a': case 'A': return 10;
-    case 'b': case 'B': return 11;
-    case 'c': case 'C': return 12;
-    case 'd': case 'D': return 13;
-    case 'e': case 'E': return 14;
-    case 'f': case 'F': return 15;
-    }
-}
-
 /* Scale an integer VALUE in-place by an optional case-insensitive
  * SUFFIX, defaulting to SCALE if suffix is NULL or empty (scale is
  * typically 1 or 1024).  Recognized suffixes include 'b' or 'bytes',
diff --git a/src/util/virutil.h b/src/util/virutil.h
index 7377c8c8da..cc6b82a177 100644
--- a/src/util/virutil.h
+++ b/src/util/virutil.h
@@ -44,8 +44,6 @@ int virScaleInteger(unsigned long long *value, const char *suffix,
                     unsigned long long scale, unsigned long long limit)
     ATTRIBUTE_NONNULL(1) G_GNUC_WARN_UNUSED_RESULT;
 
-int virHexToBin(unsigned char c);
-
 int virParseVersionString(const char *str, unsigned long *version,
                           bool allowMissing);
 
-- 
2.24.1





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux