[Commits] SDL: Removed unused variable.
libsdl.org revision control
commits-owner at libsdl.org
Thu Sep 1 01:35:12 PDT 2011
details: http://hg.libsdl.org/SDL/rev/db254478ed2d
changeset: 5859:db254478ed2d
user: Ryan C. Gordon <icculus at icculus.org>
date: Thu Sep 01 04:34:05 2011 -0400
description:
Removed unused variable.
diffstat:
src/joystick/SDL_joystick.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diffs (39 lines):
diff -r 173d28fd4be4 -r db254478ed2d src/joystick/SDL_joystick.c
--- a/src/joystick/SDL_joystick.c Thu Sep 01 04:25:15 2011 -0400
+++ b/src/joystick/SDL_joystick.c Thu Sep 01 04:34:05 2011 -0400
@@ -31,7 +31,6 @@
Uint8 SDL_numjoysticks = 0;
SDL_Joystick **SDL_joysticks = NULL;
-static SDL_Joystick *default_joystick = NULL;
int
SDL_JoystickInit(void)
@@ -52,7 +51,6 @@
}
status = 0;
}
- default_joystick = NULL;
return (status);
}
@@ -193,9 +191,6 @@
int valid;
if (*joystick == NULL) {
- *joystick = default_joystick;
- }
- if (*joystick == NULL) {
SDL_SetError("Joystick hasn't been opened yet");
valid = 0;
} else {
@@ -370,9 +365,6 @@
return;
}
- if (joystick == default_joystick) {
- default_joystick = NULL;
- }
SDL_SYS_JoystickClose(joystick);
/* Remove joystick from list */
More information about the commits
mailing list