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).
This commit is contained in:
Vadim Zeitlin
2018-01-27 00:27:21 +01:00
parent 96308f0534
commit d4c84ce745

View File

@@ -252,20 +252,6 @@ public:
if ( m_completer ) if ( m_completer )
{ {
wxTextCompleterFixed* fixedCompl =
dynamic_cast<wxTextCompleterFixed*>(m_completer);
if ( fixedCompl )
{
wxArrayString completions;
fixedCompl->GetCompletions(wxEmptyString, completions);
ChangeStrings(completions);
wxDELETE(m_completer);
return true;
}
DoEnableCompletion(); DoEnableCompletion();
DoUpdateCompletionModel(); DoUpdateCompletionModel();