Code

screen: removed unused function volume_length()
authorMax Kellermann <max@duempel.org>
Thu, 1 Oct 2009 17:40:43 +0000 (19:40 +0200)
committerMax Kellermann <max@duempel.org>
Thu, 1 Oct 2009 17:40:43 +0000 (19:40 +0200)
src/screen.c

index d9e7fdbe86ed0510a61ffd7d856e652b2e678a0b..34330ff7a3c8c82472f49a3ee51276660587df2a 100644 (file)
@@ -142,18 +142,6 @@ screen_next_mode(struct mpdclient *c, int offset)
                screen_switch(sf, c);
 }
 
-static inline int
-volume_length(int volume)
-{
-       if (volume == 100)
-               return 3;
-       if (volume >= 10 && volume < 100)
-               return 2;
-       if (volume >= 0 && volume < 10)
-               return 1;
-       return -1;
-}
-
 static void
 paint_top_window(const char *header, const struct mpdclient *c)
 {