From 03b7491beaca148aaa25f66348da08ad6e84fd3f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 7 Jul 2018 00:57:44 +0200 Subject: [PATCH] Remove unnecessary DoUpdateWindowUI() override in wxSearchCtrl There is no need to override this virtual method just to call the base class version. --- include/wx/generic/srchctlg.h | 3 --- src/generic/srchctlg.cpp | 6 ------ 2 files changed, 9 deletions(-) diff --git a/include/wx/generic/srchctlg.h b/include/wx/generic/srchctlg.h index a8d2aab843..7ac2878698 100644 --- a/include/wx/generic/srchctlg.h +++ b/include/wx/generic/srchctlg.h @@ -172,9 +172,6 @@ public: virtual bool DoAutoCompleteFileNames(int flags) wxOVERRIDE; virtual bool DoAutoCompleteCustom(wxTextCompleter *completer) wxOVERRIDE; - // do the window-specific processing after processing the update event - virtual void DoUpdateWindowUI(wxUpdateUIEvent& event) wxOVERRIDE; - virtual bool ShouldInheritColours() const wxOVERRIDE; // wxWindow overrides diff --git a/src/generic/srchctlg.cpp b/src/generic/srchctlg.cpp index 6659dc6bd3..3eba2795d5 100644 --- a/src/generic/srchctlg.cpp +++ b/src/generic/srchctlg.cpp @@ -905,12 +905,6 @@ bool wxSearchCtrl::DoSaveFile(const wxString& file, int fileType) return m_text->DoSaveFile(file, fileType); } -// do the window-specific processing after processing the update event -void wxSearchCtrl::DoUpdateWindowUI(wxUpdateUIEvent& event) -{ - wxSearchCtrlBase::DoUpdateWindowUI(event); -} - bool wxSearchCtrl::ShouldInheritColours() const { return true;