summaryrefslogtreecommitdiff
path: root/src/gui/sdlinput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/sdlinput.cpp')
-rw-r--r--src/gui/sdlinput.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp
index e80c0f8c2..bb0ded46f 100644
--- a/src/gui/sdlinput.cpp
+++ b/src/gui/sdlinput.cpp
@@ -100,9 +100,7 @@ gcn::MouseInput SDLInput::dequeueMouseInput()
gcn::MouseInput mouseInput;
if (mMouseInputQueue.empty())
- {
throw GCN_EXCEPTION("The queue is empty.");
- }
mouseInput = mMouseInputQueue.front();
mMouseInputQueue.pop();
@@ -115,9 +113,7 @@ MouseInput SDLInput::dequeueMouseInput2()
MouseInput mouseInput;
if (mMouseInputQueue.empty())
- {
throw GCN_EXCEPTION("The queue is empty.");
- }
mouseInput = mMouseInputQueue.front();
mMouseInputQueue.pop();
@@ -266,7 +262,6 @@ int SDLInput::convertMouseButton(const int button)
int SDLInput::convertKeyCharacter(const SDL_Event &event)
{
const SDL_keysym keysym = event.key.keysym;
-
int value = keysym.unicode;
switch (keysym.sym)
@@ -462,6 +457,5 @@ int SDLInput::convertKeyCharacter(const SDL_Event &event)
break;
}
}
-
return value;
}