Skip to content
Permalink
Browse files

Removed unused variable.

  • Loading branch information
icculus committed Sep 1, 2011
1 parent 85c92e3 commit d3499663c6587cec3013c1f671dde69300c6b3ed
Showing with 0 additions and 8 deletions.
  1. +0 −8 src/joystick/SDL_joystick.c
@@ -38,7 +38,6 @@

Uint8 SDL_numjoysticks = 0;
SDL_Joystick **SDL_joysticks = NULL;
static SDL_Joystick *default_joystick = NULL;

int SDL_JoystickInit(void)
{
@@ -58,7 +57,6 @@ int SDL_JoystickInit(void)
}
status = 0;
}
default_joystick = NULL;
return(status);
}

@@ -198,9 +196,6 @@ static int ValidJoystick(SDL_Joystick **joystick)
{
int valid;

if ( *joystick == NULL ) {
*joystick = default_joystick;
}
if ( *joystick == NULL ) {
SDL_SetError("Joystick hasn't been opened yet");
valid = 0;
@@ -369,9 +364,6 @@ void SDL_JoystickClose(SDL_Joystick *joystick)
/* Lock the event queue - prevent joystick polling */
SDL_Lock_EventThread();

if ( joystick == default_joystick ) {
default_joystick = NULL;
}
SDL_SYS_JoystickClose(joystick);

/* Remove joystick from list */

0 comments on commit d349966

Please sign in to comment.