Skip to content

Commit

Permalink
Removed unused constants
Browse files Browse the repository at this point in the history
Except for SDL_bmp.c where they are historically interesting and I've left them in.
  • Loading branch information
slouken committed Nov 15, 2016
1 parent acce865 commit 0d24495
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 26 deletions.
1 change: 0 additions & 1 deletion src/core/linux/SDL_udev.c
Expand Up @@ -280,7 +280,6 @@ SDL_UDEV_LoadLibrary(void)
#define BITS_PER_LONG (sizeof(unsigned long) * 8)
#define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)
#define OFF(x) ((x)%BITS_PER_LONG)
/* #define BIT(x) (1UL<<OFF(x)) */
#define LONG(x) ((x)/BITS_PER_LONG)
#define test_bit(bit, array) ((array[LONG(bit)] >> OFF(bit)) & 1)

Expand Down
5 changes: 0 additions & 5 deletions src/render/software/SDL_rotate.c
Expand Up @@ -76,11 +76,6 @@ to a situation where the program can segfault.
*/
#define GUARD_ROWS (2)

/* !
\brief Lower limit of absolute zoom factor or rotation degrees.
*/
/* #define VALUE_LIMIT 0.001 */

/* !
\brief Returns colorkey info for a surface
*/
Expand Down
5 changes: 0 additions & 5 deletions src/video/SDL_RLEaccel.c
Expand Up @@ -90,11 +90,6 @@
#include "SDL_blit.h"
#include "SDL_RLEaccel_c.h"

/*
#ifndef MAX
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#endif
*/
#ifndef MIN
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#endif
Expand Down
4 changes: 2 additions & 2 deletions src/video/SDL_bmp.c
Expand Up @@ -43,8 +43,8 @@
/* Compression encodings for BMP files */
#ifndef BI_RGB
#define BI_RGB 0
/* #define BI_RLE8 1 */
/* #define BI_RLE4 2 */
#define BI_RLE8 1
#define BI_RLE4 2
#define BI_BITFIELDS 3
#endif

Expand Down
12 changes: 0 additions & 12 deletions src/video/x11/SDL_x11opengl.c
Expand Up @@ -519,18 +519,6 @@ X11_GL_GetVisual(_THIS, Display * display, int screen)
return vinfo;
}

#if 0
#ifndef GLXBadContext
#define GLXBadContext 0
#endif
#ifndef GLXBadFBConfig
#define GLXBadFBConfig 9
#endif
#ifndef GLXBadProfileARB
#define GLXBadProfileARB 13
#endif
#endif

static int (*handler) (Display *, XErrorEvent *) = NULL;
static const char *errorHandlerOperation = NULL;
static int errorBase = 0;
Expand Down
1 change: 0 additions & 1 deletion src/video/x11/SDL_x11window.c
Expand Up @@ -44,7 +44,6 @@

#define _NET_WM_STATE_REMOVE 0l
#define _NET_WM_STATE_ADD 1l
/* #define _NET_WM_STATE_TOGGLE 2l */

static Bool isMapNotify(Display *dpy, XEvent *ev, XPointer win)
{
Expand Down

0 comments on commit 0d24495

Please sign in to comment.