Controller Base: removed unused process_focus_keydown_event event

This was used before the command console was converted to GUI2.
This commit is contained in:
Charles Dang 2017-07-21 15:46:54 +11:00
parent 0032395ccf
commit 63398733b0
2 changed files with 1 additions and 8 deletions

View file

@ -69,6 +69,7 @@ void controller_base::handle_event(const SDL_Event& event)
switch(event.type) {
case SDL_TEXTINPUT:
// TODO: remove, not necessary anymore
if(have_keyboard_focus()) {
hotkey::key_event(event, get_hotkey_command_executor());
}
@ -96,8 +97,6 @@ void controller_base::handle_event(const SDL_Event& event)
process_keydown_event(event);
hotkey::key_event(event, get_hotkey_command_executor());
process_keyup_event(event);
} else {
process_focus_keydown_event(event);
}
break;

View file

@ -154,12 +154,6 @@ protected:
// No action by default
}
/** Process keydown (only when the general map display does not have focus). */
virtual void process_focus_keydown_event(const SDL_Event& /*event*/)
{
// No action by default
}
/** Process keydown (always). Overridden in derived classes */
virtual void process_keydown_event(const SDL_Event& /*event*/)
{