From 1a35dffad7156592c6e983776b470a4108960bd3 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 7 May 2011 19:38:20 +0000 Subject: Removed a number of unused variables to make gcc 4.6 happy. --- src/client/keyboard.cc | 3 --- src/client/soundext.cc | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'src/client') diff --git a/src/client/keyboard.cc b/src/client/keyboard.cc index 7486ff3..c2b3827 100644 --- a/src/client/keyboard.cc +++ b/src/client/keyboard.cc @@ -547,13 +547,10 @@ void Keyboard::list_binds() unsigned int Keyboard::translate_keysym(int keysym, int modifier) { - bool shift = false; - bool numlock = false; // keypad keys if (modifier & KMOD_NUM) { - numlock = true; switch (keysym) { case SDLK_KP0: return '0'; diff --git a/src/client/soundext.cc b/src/client/soundext.cc index db8f642..e9d2deb 100644 --- a/src/client/soundext.cc +++ b/src/client/soundext.cc @@ -104,11 +104,11 @@ SoundExt::SoundExt(core::Entity *entity) : core::Extension(core::Extension::Soun if (entity->type() == core::Entity::Controlable) { core::EntityControlable *entityco = static_cast(entity); unsigned int enginesoundset = 0; - unsigned int impulsesoundset = 0; + //unsigned int impulsesoundset = 0; if (entityco->model()) { enginesoundset = entityco->model()->enginesound(); - impulsesoundset = entityco->model()->impulsesound(); + //impulsesoundset = entityco->model()->impulsesound(); } std::stringstream soundname; -- cgit v1.2.3