Removed unused variable.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 01 Sep 2011 04:34:05 -0400
changeset 5859db254478ed2d
parent 5856 173d28fd4be4
child 5860 b89f7f3bc9be
Removed unused variable.
src/joystick/SDL_joystick.c
     1.1 --- a/src/joystick/SDL_joystick.c	Thu Sep 01 04:25:15 2011 -0400
     1.2 +++ b/src/joystick/SDL_joystick.c	Thu Sep 01 04:34:05 2011 -0400
     1.3 @@ -31,7 +31,6 @@
     1.4  
     1.5  Uint8 SDL_numjoysticks = 0;
     1.6  SDL_Joystick **SDL_joysticks = NULL;
     1.7 -static SDL_Joystick *default_joystick = NULL;
     1.8  
     1.9  int
    1.10  SDL_JoystickInit(void)
    1.11 @@ -52,7 +51,6 @@
    1.12          }
    1.13          status = 0;
    1.14      }
    1.15 -    default_joystick = NULL;
    1.16      return (status);
    1.17  }
    1.18  
    1.19 @@ -193,9 +191,6 @@
    1.20      int valid;
    1.21  
    1.22      if (*joystick == NULL) {
    1.23 -        *joystick = default_joystick;
    1.24 -    }
    1.25 -    if (*joystick == NULL) {
    1.26          SDL_SetError("Joystick hasn't been opened yet");
    1.27          valid = 0;
    1.28      } else {
    1.29 @@ -370,9 +365,6 @@
    1.30          return;
    1.31      }
    1.32  
    1.33 -    if (joystick == default_joystick) {
    1.34 -        default_joystick = NULL;
    1.35 -    }
    1.36      SDL_SYS_JoystickClose(joystick);
    1.37  
    1.38      /* Remove joystick from list */