From d0d72a403cd0799670d92ebaeda22b66fb2bcd77 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 26 Nov 2012 23:53:18 -0800 Subject: [PATCH] Fixed unused variable warning --- src/joystick/SDL_gamecontroller.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c index 440fea0c5..03bd7fb9b 100644 --- a/src/joystick/SDL_gamecontroller.c +++ b/src/joystick/SDL_gamecontroller.c @@ -730,8 +730,6 @@ SDL_GameControllerOpen(int device_index) SDL_GameController *gamecontrollerlist; ControllerMapping_t *pSupportedController = NULL; - int deviceMappingIndex = -1; - if ((device_index < 0) || (device_index >= SDL_NumJoysticks())) { SDL_SetError("There are %d joysticks available", SDL_NumJoysticks()); return (NULL);