SDL: Removed test binding for space key

From 4f122c6e395eb117151b7b946f9d6ed08adfd8ea Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 11 Jul 2023 08:18:36 -0700
Subject: [PATCH] Removed test binding for space key

This pops up at the most inconvenient times, and space is handy for other functions in various test programs.
---
 src/test/SDL_test_common.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c
index d53f0fef26d2..f621ef7ad896 100644
--- a/src/test/SDL_test_common.c
+++ b/src/test/SDL_test_common.c
@@ -2013,7 +2013,6 @@ static void FullscreenTo(SDLTest_CommonState *state, int index, int windowId)
 void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done)
 {
     int i;
-    static SDL_MouseMotionEvent lastEvent;
 
     if (state->verbose & VERBOSE_EVENT) {
         if (((event->type != SDL_EVENT_MOUSE_MOTION) &&
@@ -2390,16 +2389,6 @@ void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done
         case SDLK_ESCAPE:
             *done = 1;
             break;
-        case SDLK_SPACE:
-        {
-            char message[256];
-            SDL_Window *window = SDL_GetWindowFromID(event->key.windowID);
-
-            (void)SDL_snprintf(message, sizeof(message), "(%g, %g), rel (%g, %g)\n",
-                               lastEvent.x, lastEvent.y, lastEvent.xrel, lastEvent.yrel);
-            SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_INFORMATION, "Last mouse position", message, window);
-            break;
-        }
         default:
             break;
         }
@@ -2408,9 +2397,6 @@ void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done
     case SDL_EVENT_QUIT:
         *done = 1;
         break;
-    case SDL_EVENT_MOUSE_MOTION:
-        lastEvent = event->motion;
-        break;
 
     case SDL_EVENT_DROP_FILE:
     case SDL_EVENT_DROP_TEXT: