Remove almost unused GetEntryCompletion() function

This function was now used only once and it's not really useful to have
a trivial wrapper around the corresponding GTK+ function, just use it
directly.
This commit is contained in:
Vadim Zeitlin
2018-01-27 00:23:59 +01:00
parent 6f229cdcde
commit f354b0a1b5

View File

@@ -310,7 +310,7 @@ private:
void DoEnableCompletion() void DoEnableCompletion()
{ {
if ( !GetEntryCompletion() ) if ( !gtk_entry_get_completion (GetGtkEntry()) )
{ {
GtkEntryCompletion * const completion = gtk_entry_completion_new(); GtkEntryCompletion * const completion = gtk_entry_completion_new();
@@ -417,10 +417,6 @@ private:
GtkEntry* GetGtkEntry() const { return m_entry->GetEntry(); } GtkEntry* GetGtkEntry() const { return m_entry->GetEntry(); }
GtkEntryCompletion* GetEntryCompletion() const
{
return gtk_entry_get_completion (GetGtkEntry());
}
// The text entry we're associated with. // The text entry we're associated with.
wxTextEntry * const m_entry; wxTextEntry * const m_entry;