mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
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:
parent
2e53bfa1bb
commit
32b3fd9b26
@ -3409,7 +3409,6 @@ virGetUserID;
|
||||
virGetUserName;
|
||||
virGetUserRuntimeDirectory;
|
||||
virGetUserShell;
|
||||
virHexToBin;
|
||||
virHostGetDRMRenderNode;
|
||||
virHostHasIOMMU;
|
||||
virIndexToDiskName;
|
||||
|
@ -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',
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user