From ccdfd28b482d4a42d68842624f9b429e71a9656c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 24 Apr 2021 00:31:17 +0200 Subject: [PATCH] Remove empty wxDataViewCtrl::OnChar() added in the parent commit This is not really useful to have, so just remove it. --- include/wx/osx/dataview.h | 1 - src/osx/dataview_osx.cpp | 7 ------- 2 files changed, 8 deletions(-) diff --git a/include/wx/osx/dataview.h b/include/wx/osx/dataview.h index bc0741f353..7e759472b1 100644 --- a/include/wx/osx/dataview.h +++ b/include/wx/osx/dataview.h @@ -285,7 +285,6 @@ protected: // event handling void OnSize(wxSizeEvent &event); void OnMouse(wxMouseEvent &event); - void OnChar(wxKeyEvent &event); private: // initializing of local variables: diff --git a/src/osx/dataview_osx.cpp b/src/osx/dataview_osx.cpp index 5db0a17b5a..c79d04f3c1 100644 --- a/src/osx/dataview_osx.cpp +++ b/src/osx/dataview_osx.cpp @@ -770,18 +770,11 @@ void wxDataViewCtrl::OnMouse(wxMouseEvent& event) event.Skip(); } -void wxDataViewCtrl::OnChar(wxKeyEvent& event) -{ - // generic key handling can moved here - event.Skip(); -} - wxIMPLEMENT_DYNAMIC_CLASS(wxDataViewCtrl,wxDataViewCtrlBase); wxBEGIN_EVENT_TABLE(wxDataViewCtrl,wxDataViewCtrlBase) EVT_SIZE(wxDataViewCtrl::OnSize) EVT_MOTION(wxDataViewCtrl::OnMouse) - EVT_CHAR(wxDataViewCtrl::OnChar) wxEND_EVENT_TABLE() #endif // !wxHAS_GENERIC_DATAVIEWCTRL