This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Removed unused variable.
- Loading branch information
Showing
with
0 additions
and
8 deletions.
-
+0
−8
src/joystick/SDL_joystick.c
|
@@ -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 @@ SDL_JoystickInit(void) |
|
|
} |
|
|
status = 0; |
|
|
} |
|
|
default_joystick = NULL; |
|
|
return (status); |
|
|
} |
|
|
|
|
@@ -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; |
|
@@ -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 */ |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.