Commit af022f47 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Removed unused variable.

parent 6b4a7b19
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
Uint8 SDL_numjoysticks = 0; Uint8 SDL_numjoysticks = 0;
SDL_Joystick **SDL_joysticks = NULL; SDL_Joystick **SDL_joysticks = NULL;
static SDL_Joystick *default_joystick = NULL;
int int
SDL_JoystickInit(void) SDL_JoystickInit(void)
...@@ -52,7 +51,6 @@ SDL_JoystickInit(void) ...@@ -52,7 +51,6 @@ SDL_JoystickInit(void)
} }
status = 0; status = 0;
} }
default_joystick = NULL;
return (status); return (status);
} }
...@@ -192,9 +190,6 @@ SDL_PrivateJoystickValid(SDL_Joystick ** joystick) ...@@ -192,9 +190,6 @@ SDL_PrivateJoystickValid(SDL_Joystick ** joystick)
{ {
int valid; int valid;
if (*joystick == NULL) {
*joystick = default_joystick;
}
if (*joystick == NULL) { if (*joystick == NULL) {
SDL_SetError("Joystick hasn't been opened yet"); SDL_SetError("Joystick hasn't been opened yet");
valid = 0; valid = 0;
...@@ -370,9 +365,6 @@ SDL_JoystickClose(SDL_Joystick * joystick) ...@@ -370,9 +365,6 @@ SDL_JoystickClose(SDL_Joystick * joystick)
return; return;
} }
if (joystick == default_joystick) {
default_joystick = NULL;
}
SDL_SYS_JoystickClose(joystick); SDL_SYS_JoystickClose(joystick);
/* Remove joystick from list */ /* Remove joystick from list */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment