Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Removed unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 1, 2011
1 parent 46c82d0 commit 054f38d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/joystick/SDL_joystick.c
Expand Up @@ -31,7 +31,6 @@

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

int
SDL_JoystickInit(void)
Expand All @@ -52,7 +51,6 @@ SDL_JoystickInit(void)
}
status = 0;
}
default_joystick = NULL;
return (status);
}

Expand Down Expand Up @@ -192,9 +190,6 @@ SDL_PrivateJoystickValid(SDL_Joystick ** joystick)
{
int valid;

if (*joystick == NULL) {
*joystick = default_joystick;
}
if (*joystick == NULL) {
SDL_SetError("Joystick hasn't been opened yet");
valid = 0;
Expand Down Expand Up @@ -370,9 +365,6 @@ SDL_JoystickClose(SDL_Joystick * joystick)
return;
}

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

/* Remove joystick from list */
Expand Down

0 comments on commit 054f38d

Please sign in to comment.