]> git.tue.mpg.de Git - paraslash.git/commitdiff
mood.c: Remove unused int_log2().
authorAndre Noll <maan@systemlinux.org>
Wed, 24 Jul 2013 22:45:17 +0000 (00:45 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 13 Oct 2013 13:25:06 +0000 (15:25 +0200)
This function was commented out for six years.

mood.c

diff --git a/mood.c b/mood.c
index e5e8495369f1e7ffffe36bd463ec5aadf6163e39..833820a8b2ff8f13108102f41f1d9578bd564c17 100644 (file)
--- 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)