From 7ce2636f6380be8db0ae8a90edd834d358cc66c8 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Mon, 8 Dec 2014 22:42:38 +0100 Subject: [PATCH] wmaker: removed unused constant SCROLL_STEPS in the switchpanel code As pointed by gcc, this constant is not used anywhere in the code. It seems to have been prepared for a scroll animation when the switchpanel would be too big to fit the screen, but the code looks like to never have been activated, and was cleaned away in commit 6d08aa22d824d6abe5edb4c4892bbf9eaec3175b If the feature were to be re-added, it would be better to use something proportional to the menu scroll speed parameter that can be configured by user anyway. Signed-off-by: Christophe CURIS --- src/switchpanel.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/switchpanel.c b/src/switchpanel.c index f048ac52..b3832f16 100644 --- a/src/switchpanel.c +++ b/src/switchpanel.c @@ -68,7 +68,6 @@ struct SwitchPanel { #define ICON_TILE_SIZE 64 #define LABEL_HEIGHT 25 #define SCREEN_BORDER_SPACING 2*20 -#define SCROLL_STEPS (ICON_TILE_SIZE/2) #define ICON_SELECTED (1<<1) #define ICON_DIM (1<<2)