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;