From d4c84ce7453217268f9dd325523fc9c90d649f2b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 27 Jan 2018 00:27:21 +0100 Subject: [PATCH] Remove special check for wxTextCompleterFixed There should be no need to handle this class specially and it's supposed to be just an implementation detail, so don't add any dependencies on it (if it's really important to optimize for this case, the check should be done for wxTextCompleterSimple and use wxRTTI as wxWidgets still supports being built without standard C++ RTTI). --- src/gtk/textentry.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/gtk/textentry.cpp b/src/gtk/textentry.cpp index 66c9c99516..efffa656d1 100644 --- a/src/gtk/textentry.cpp +++ b/src/gtk/textentry.cpp @@ -252,20 +252,6 @@ public: if ( m_completer ) { - wxTextCompleterFixed* fixedCompl = - dynamic_cast(m_completer); - - if ( fixedCompl ) - { - wxArrayString completions; - fixedCompl->GetCompletions(wxEmptyString, completions); - - ChangeStrings(completions); - - wxDELETE(m_completer); - return true; - } - DoEnableCompletion(); DoUpdateCompletionModel();