From: Andre Noll Date: Wed, 24 Jul 2013 22:45:17 +0000 (+0200) Subject: mood.c: Remove unused int_log2(). X-Git-Tag: v0.5.1~6^2~5 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=ab9f717f527fa0723e4f50c4bdeab39533738773;hp=41bf9b01ed2193a5fe368e40b8b1f16b5c4b5495;ds=sidebyside mood.c: Remove unused int_log2(). This function was commented out for six years. --- diff --git a/mood.c b/mood.c index e5e84953..833820a8 100644 --- a/mood.c +++ b/mood.c @@ -455,19 +455,6 @@ void mood_check_callback(int fd, __a_unused const struct osl_object *query) free(pb.buf); } -#if 0 -static unsigned int_log2(uint64_t x) -{ - unsigned res = 0; - - while (x) { - x /= 2; - res++; - } - return res; -} -#endif - static int64_t normalized_value(int64_t x, int64_t n, int64_t sum, int64_t qd) { if (!n || !qd)