From e59127de8b89a377348c11ea11430a4fcbf4ff5d Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Tue, 2 Jul 2013 16:35:43 +0000 Subject: [PATCH] remove unused function GTKSetItem() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/listbox.h | 3 --- src/gtk/listbox.cpp | 17 ----------------- 2 files changed, 20 deletions(-) diff --git a/include/wx/gtk/listbox.h b/include/wx/gtk/listbox.h index ed73ca33d8..4df8e97ecd 100644 --- a/include/wx/gtk/listbox.h +++ b/include/wx/gtk/listbox.h @@ -124,9 +124,6 @@ protected: // get the index for the given iterator, return wxNOT_FOUND on failure int GTKGetIndexFor(_GtkTreeIter& iter) const; - // set the specified item - void GTKSetItem(_GtkTreeIter& iter, const _GtkTreeEntry *entry); - // common part of DoSetFirstItem() and EnsureVisible() void DoScrollToCell(int n, float alignY, float alignX); diff --git a/src/gtk/listbox.cpp b/src/gtk/listbox.cpp index 5f1a0ed7a1..f2717c6c82 100644 --- a/src/gtk/listbox.cpp +++ b/src/gtk/listbox.cpp @@ -555,23 +555,6 @@ GtkTreeEntry *wxListBox::GTKGetEntry(unsigned n) const return GetEntry(m_liststore, &iter, this); } -void wxListBox::GTKSetItem(GtkTreeIter& iter, const GtkTreeEntry *entry) -{ -#if wxUSE_CHECKLISTBOX - if ( m_hasCheckBoxes ) - { - gtk_list_store_set(m_liststore, &iter, - 0, FALSE, // FALSE == not toggled - 1, entry, - -1); - } - else -#endif // wxUSE_CHECKLISTBOX - { - gtk_list_store_set(m_liststore, &iter, 0, entry, -1); - } -} - // ---------------------------------------------------------------------------- // client data // ---------------------------------------------------------------------------- -- 2.45.2