From 331babd2d95577662a420c5e8dae9d475eec3759 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 9 Nov 2013 22:08:53 +0000 Subject: [PATCH] No real changes, just remove an unused line from wxOSX wxListBox code. Don't create a wxEVT_LISTBOX event unnecessarily, this is done by the helper HandleLineEvent() function called from here. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/listbox.mm | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/osx/cocoa/listbox.mm b/src/osx/cocoa/listbox.mm index 0cc450997e..95d36c388e 100644 --- a/src/osx/cocoa/listbox.mm +++ b/src/osx/cocoa/listbox.mm @@ -302,8 +302,6 @@ protected: wxListBox *list = static_cast ( impl->GetWXPeer()); wxCHECK_RET( list != NULL , wxT("Listbox expected")); - wxCommandEvent event( wxEVT_LISTBOX, list->GetId() ); - if ((row < 0) || (row > (int) list->GetCount())) // OS X can select an item below the last item return;