From 723f2173555bde7ee3a131a86619b7ed2d49bc4e Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Mon, 8 Dec 2014 22:42:35 +0100 Subject: [PATCH] remove unused macros defining corner positions 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 --- WINGs/wballoon.c | 5 ----- src/balloon.c | 5 ----- 2 files changed, 10 deletions(-) diff --git a/WINGs/wballoon.c b/WINGs/wballoon.c index 78fac113..c87b6c9e 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 c989803e..25998e1f 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;