From 8f3ceb39a76a629b146361726f7d250f1250db45 Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Sun, 16 Jan 2011 09:49:08 +0000 Subject: [PATCH] Remove an unused variable. Not entirely sure whether the e instead of event should have been used, but the code is there since 2008 an no bug reports. ilor you still might want to review it. Fixes a g++ 4.6 warning. --- src/controller_base.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/controller_base.cpp b/src/controller_base.cpp index 6236699d925..5e7ab89304e 100644 --- a/src/controller_base.cpp +++ b/src/controller_base.cpp @@ -94,12 +94,6 @@ void controller_base::handle_event(const SDL_Event& event) int x, y; Uint8 mouse_flags = SDL_GetMouseState(&x, &y); if ((mouse_flags & SDL_BUTTON_LEFT) == 0) { - SDL_Event e; - e.type = SDL_MOUSEBUTTONUP; - e.button.state = SDL_RELEASED; - e.button.button = SDL_BUTTON_LEFT; - e.button.x = x; - e.button.y = y; get_mouse_handler_base().mouse_press(event.button, browse_); post_mouse_press(event); }