From 1d0f02f5ca877051583b85554d57b070cca2f1ec Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Mon, 8 Dec 2014 22:42:34 +0100 Subject: [PATCH] remove a few unused constant for size of buffers As pointed by gcc, a few constants which contain sizes for buffers are not used anywhere in the code. This is probably due to code cleanup, where these buffers have been removed or where size is automatically calculated by using 'sizeof' instead to reduce risk of bugs. Signed-off-by: Christophe CURIS --- WINGs/wcolorpanel.c | 3 --- WINGs/wfontpanel.c | 2 -- WPrefs.app/Menu.c | 1 - src/workspace.c | 1 - 4 files changed, 7 deletions(-) diff --git a/WINGs/wcolorpanel.c b/WINGs/wcolorpanel.c index 9cb004e5..12d54480 100644 --- a/WINGs/wcolorpanel.c +++ b/WINGs/wcolorpanel.c @@ -264,9 +264,6 @@ enum { #define COLORWHEEL_PART 1 #define CUSTOMPALETTE_PART 2 -#define BUFSIZE 1024 - -#define MAX_LENGTH 1024 #ifndef M_PI #define M_PI 3.14159265358979323846 diff --git a/WINGs/wfontpanel.c b/WINGs/wfontpanel.c index aede6ddc..2d6f77f7 100644 --- a/WINGs/wfontpanel.c +++ b/WINGs/wfontpanel.c @@ -43,8 +43,6 @@ typedef struct W_FontPanel { #define MIN_UPPER_HEIGHT 20 #define MIN_LOWER_HEIGHT 140 -#define MAX_FONTS_TO_RETRIEVE 2000 - #define BUTTON_SPACE_HEIGHT 40 #define MIN_WIDTH 250 diff --git a/WPrefs.app/Menu.c b/WPrefs.app/Menu.c index db5b6c18..5f0f0171 100644 --- a/WPrefs.app/Menu.c +++ b/WPrefs.app/Menu.c @@ -42,7 +42,6 @@ typedef enum { } InfoType; #define MAX_SECTION_SIZE 4 -#define PATH_LEN 256 typedef struct _Panel { WMBox *box; diff --git a/src/workspace.c b/src/workspace.c index 9a820574..380ffec0 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -57,7 +57,6 @@ /* index of the first workspace menu entry */ #define MC_WORKSPACE1 3 -#define MAX_SHORTCUT_LENGTH 32 #define WORKSPACE_NAME_DISPLAY_PADDING 32 static WMPropList *dWorkspaces = NULL;