Fixed warnings about unused functions in test program.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 20 Aug 2014 22:44:15 +0200
changeset 9102a22458d5eed9
parent 9101 f0c55792deed
child 9103 e8950fdc485f
Fixed warnings about unused functions in test program.
test/testgamecontroller.c
     1.1 --- a/test/testgamecontroller.c	Wed Aug 20 22:40:56 2014 +0200
     1.2 +++ b/test/testgamecontroller.c	Wed Aug 20 22:44:15 2014 +0200
     1.3 @@ -28,51 +28,6 @@
     1.4  #define SCREEN_HEIGHT   317
     1.5  #endif
     1.6  
     1.7 -static const char *
     1.8 -ControllerAxisName(const SDL_GameControllerAxis axis)
     1.9 -{
    1.10 -    switch (axis)
    1.11 -    {
    1.12 -        #define AXIS_CASE(ax) case SDL_CONTROLLER_AXIS_##ax: return #ax
    1.13 -        AXIS_CASE(INVALID);
    1.14 -        AXIS_CASE(LEFTX);
    1.15 -        AXIS_CASE(LEFTY);
    1.16 -        AXIS_CASE(RIGHTX);
    1.17 -        AXIS_CASE(RIGHTY);
    1.18 -        AXIS_CASE(TRIGGERLEFT);
    1.19 -        AXIS_CASE(TRIGGERRIGHT);
    1.20 -        #undef AXIS_CASE
    1.21 -        default: return "???";
    1.22 -    }
    1.23 -}
    1.24 -
    1.25 -static const char *
    1.26 -ControllerButtonName(const SDL_GameControllerButton button)
    1.27 -{
    1.28 -    switch (button)
    1.29 -    {
    1.30 -        #define BUTTON_CASE(btn) case SDL_CONTROLLER_BUTTON_##btn: return #btn
    1.31 -        BUTTON_CASE(INVALID);
    1.32 -        BUTTON_CASE(A);
    1.33 -        BUTTON_CASE(B);
    1.34 -        BUTTON_CASE(X);
    1.35 -        BUTTON_CASE(Y);
    1.36 -        BUTTON_CASE(BACK);
    1.37 -        BUTTON_CASE(GUIDE);
    1.38 -        BUTTON_CASE(START);
    1.39 -        BUTTON_CASE(LEFTSTICK);
    1.40 -        BUTTON_CASE(RIGHTSTICK);
    1.41 -        BUTTON_CASE(LEFTSHOULDER);
    1.42 -        BUTTON_CASE(RIGHTSHOULDER);
    1.43 -        BUTTON_CASE(DPAD_UP);
    1.44 -        BUTTON_CASE(DPAD_DOWN);
    1.45 -        BUTTON_CASE(DPAD_LEFT);
    1.46 -        BUTTON_CASE(DPAD_RIGHT);
    1.47 -        #undef BUTTON_CASE
    1.48 -        default: return "???";
    1.49 -    }
    1.50 -}
    1.51 -
    1.52  static SDL_Texture *
    1.53  LoadTexture(SDL_Renderer *renderer, char *file, SDL_bool transparent)
    1.54  {