From f354b0a1b5db7d6ab76990b54ce9baf19c701a49 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 27 Jan 2018 00:23:59 +0100 Subject: [PATCH] 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. --- src/gtk/textentry.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gtk/textentry.cpp b/src/gtk/textentry.cpp index 137fbde9fc..1b7b003deb 100644 --- a/src/gtk/textentry.cpp +++ b/src/gtk/textentry.cpp @@ -310,7 +310,7 @@ private: void DoEnableCompletion() { - if ( !GetEntryCompletion() ) + if ( !gtk_entry_get_completion (GetGtkEntry()) ) { GtkEntryCompletion * const completion = gtk_entry_completion_new(); @@ -417,10 +417,6 @@ private: GtkEntry* GetGtkEntry() const { return m_entry->GetEntry(); } - GtkEntryCompletion* GetEntryCompletion() const - { - return gtk_entry_get_completion (GetGtkEntry()); - } // The text entry we're associated with. wxTextEntry * const m_entry;