These are leftover from the old migration code. Signed-off-by: Anthony Liguori <aliguori@xxxxxxxxxx> --- cutils.c | 39 --------------------------------------- qemu-common.h | 2 -- 2 files changed, 0 insertions(+), 41 deletions(-) diff --git a/cutils.c b/cutils.c index 4bf4fcd..e2bee1e 100644 --- a/cutils.c +++ b/cutils.c @@ -99,45 +99,6 @@ time_t mktimegm(struct tm *tm) return t; } -int hex2bin(char ch) -{ - if (ch >= '0' && ch <= '9') - return ch - '0'; - else if (ch >= 'A' && ch <= 'Z') - return 10 + ch - 'A'; - else if (ch >= 'a' && ch <= 'z') - return 10 + ch - 'a'; - - return -1; -} - -char *urldecode(const char *ptr) -{ - char *ret; - int i; - - ret = qemu_mallocz(strlen(ptr) + 1); - if (ret == NULL) - return NULL; - - for (i = 0; *ptr; ptr++, i++) { - switch (*ptr) { - case '%': - if (ptr[1] == 0 || ptr[2] == 0) - break; - ret[i] = hex2bin(ptr[1]) << 4 | hex2bin(ptr[2]); - ptr += 2; - break; - default: - ret[i] = *ptr; - break; - } - } - ret[i] = 0; - - return ret; -} - int qemu_fls(int i) { return 32 - clz32(i); diff --git a/qemu-common.h b/qemu-common.h index 77d4ddd..942d3a6 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -109,8 +109,6 @@ int strstart(const char *str, const char *val, const char **ptr); int stristart(const char *str, const char *val, const char **ptr); time_t mktimegm(struct tm *tm); int qemu_fls(int i); -int hex2bin(char ch); -char *urldecode(const char *ptr); #define qemu_isalnum(c) isalnum((unsigned char)(c)) #define qemu_isalpha(c) isalpha((unsigned char)(c)) -- 1.6.0.6 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html