As pointed by gcc, the 4 constant the define the corner positions are not used anywhere in the code, and it looks like it has always been like this. As it is a cost for maintainability, get rid of them.
Signed-off-by: Christophe CURIS <christophe.cu...@free.fr> --- WINGs/wballoon.c | 5 ----- src/balloon.c | 5 ----- 2 files changed, 10 deletions(-) diff --git a/WINGs/wballoon.c b/WINGs/wballoon.c index 78fac11..c87b6c9 100644 --- a/WINGs/wballoon.c +++ b/WINGs/wballoon.c @@ -229,11 +229,6 @@ void W_BalloonHandleEnterView(WMView * view) #define LEFT 0 #define RIGHT 2 -#define TLEFT (TOP|LEFT) -#define TRIGHT (TOP|RIGHT) -#define BLEFT (BOTTOM|LEFT) -#define BRIGHT (BOTTOM|RIGHT) - #define SPACE 12 static void drawBalloon(WMScreen * scr, Pixmap bitmap, Pixmap pix, int x, int y, int w, int h, int side) diff --git a/src/balloon.c b/src/balloon.c index c989803..25998e1 100644 --- a/src/balloon.c +++ b/src/balloon.c @@ -72,11 +72,6 @@ typedef struct _WBalloon { #define LEFT 0 #define RIGHT 2 -#define TLEFT (TOP|LEFT) -#define TRIGHT (TOP|RIGHT) -#define BLEFT (BOTTOM|LEFT) -#define BRIGHT (BOTTOM|RIGHT) - static int countLines(const char *text) { const char *p = text; -- 2.1.3 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.