util: remove virHexToBin

Now that it is no longer used.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
Ján Tomko 2020-02-23 20:54:46 +01:00
parent 2e53bfa1bb
commit 32b3fd9b26
3 changed files with 0 additions and 18 deletions

View File

@ -3409,7 +3409,6 @@ virGetUserID;
virGetUserName;
virGetUserRuntimeDirectory;
virGetUserShell;
virHexToBin;
virHostGetDRMRenderNode;
virHostHasIOMMU;
virIndexToDiskName;

View File

@ -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',

View File

@ -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);