X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/289532452089421ddadbd4726a8469511a19ab76..7279a306bbef7f0965e6a1e36924bc2591f12f1e:/src/gtk/listbox.cpp diff --git a/src/gtk/listbox.cpp b/src/gtk/listbox.cpp index 06c62c2ff5..9a406184bd 100644 --- a/src/gtk/listbox.cpp +++ b/src/gtk/listbox.cpp @@ -578,9 +578,6 @@ void wxListBox::GTKSetItem(GtkTreeIter& iter, const GtkTreeEntry *entry) void* wxListBox::DoGetItemClientData(unsigned int n) const { - wxCHECK_MSG( IsValid(n), NULL, - wxT("Invalid index passed to GetItemClientData") ); - wxGtkObject entry(GTKGetEntry(n)); wxCHECK_MSG(entry, NULL, wxT("could not get entry")); @@ -589,9 +586,6 @@ void* wxListBox::DoGetItemClientData(unsigned int n) const void wxListBox::DoSetItemClientData(unsigned int n, void* clientData) { - wxCHECK_RET( IsValid(n), - wxT("Invalid index passed to SetItemClientData") ); - wxGtkObject entry(GTKGetEntry(n)); wxCHECK_RET(entry, wxT("could not get entry"));