From e08c524068fada2c26a945887e0a26a9cc9fc87c Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Thu, 15 Feb 2018 11:10:39 -0500 Subject: [PATCH] Remove unused qemu_fls function Nothing uses qemu_fls() any more, so delete it. Backports commit 10944a19209bb520054569e0f156f50338901264 from qemu --- qemu/include/qemu-common.h | 1 - qemu/util/cutils.c | 5 ----- 2 files changed, 6 deletions(-) diff --git a/qemu/include/qemu-common.h b/qemu/include/qemu-common.h index 1b40bbd5..bef8ef5c 100644 --- a/qemu/include/qemu-common.h +++ b/qemu/include/qemu-common.h @@ -162,7 +162,6 @@ int qemu_strnlen(const char *s, int max_len); * Returns: the pointer originally in @input. */ char *qemu_strsep(char **input, const char *delim); -int qemu_fls(int i); /* * strtosz() suffixes used to specify the default treatment of an diff --git a/qemu/util/cutils.c b/qemu/util/cutils.c index dd0d56a7..f7fa35cb 100644 --- a/qemu/util/cutils.c +++ b/qemu/util/cutils.c @@ -127,11 +127,6 @@ char *qemu_strsep(char **input, const char *delim) return result; } -int qemu_fls(int i) -{ - return 32 - clz32(i); -} - static int64_t suffix_mul(char suffix, int64_t unit) { switch (qemu_toupper(suffix)) {