From: Max Kellermann Date: Thu, 1 Oct 2009 17:40:43 +0000 (+0200) Subject: screen: removed unused function volume_length() X-Git-Tag: release-0.16~238 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4b7f889174bb129c77c828efac76813bf82472be;p=ncmpc.git screen: removed unused function volume_length() --- diff --git a/src/screen.c b/src/screen.c index d9e7fdb..34330ff 100644 --- a/src/screen.c +++ b/src/screen.c @@ -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) {