From 0e260409fd720db14d1b2a3e28e8db78467accc2 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 29 Nov 2011 23:17:49 +0000 Subject: [PATCH] Remove unused OnKeyDown method from DialogSearchReplace Originally committed to SVN as r5932. --- aegisub/src/dialog_search_replace.cpp | 18 +----------------- aegisub/src/dialog_search_replace.h | 1 - 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/aegisub/src/dialog_search_replace.cpp b/aegisub/src/dialog_search_replace.cpp index 508b8de11..cb06809f9 100644 --- a/aegisub/src/dialog_search_replace.cpp +++ b/aegisub/src/dialog_search_replace.cpp @@ -192,26 +192,10 @@ END_EVENT_TABLE() /// @brief Close /// @param event /// -void DialogSearchReplace::OnClose (wxCommandEvent &event) { +void DialogSearchReplace::OnClose (wxCommandEvent &) { Show(false); } - - -/// @brief Key -/// @param event -/// -void DialogSearchReplace::OnKeyDown (wxKeyEvent &event) { - //if (event.GetKeyCode() == WXK_ESCAPE) { - // Search.OnDialogClose(); - // // Just hide - // Show(false); - //} - event.Skip(); -} - - - /// @brief Find or replace /// @param mode /// @return diff --git a/aegisub/src/dialog_search_replace.h b/aegisub/src/dialog_search_replace.h index 40dccf09b..9742ca54b 100644 --- a/aegisub/src/dialog_search_replace.h +++ b/aegisub/src/dialog_search_replace.h @@ -165,7 +165,6 @@ private: void OnReplaceAll (wxCommandEvent &event); void OnSetFocus (wxFocusEvent &event); void OnKillFocus (wxFocusEvent &event); - void OnKeyDown (wxKeyEvent &event); public: DialogSearchReplace(wxWindow *parent,bool hasReplace,wxString name);