Also remove unused wxGrid wxEVT_ERASE_BACKGROUND handler

It is never used anyhow, as wxGrid is entirely covered by its children
windows.
This commit is contained in:
Vadim Zeitlin
2020-01-24 02:36:03 +01:00
parent e671386d1a
commit c2b0edefbd
2 changed files with 0 additions and 6 deletions

View File

@@ -2365,7 +2365,6 @@ protected:
void OnKeyDown( wxKeyEvent& ); void OnKeyDown( wxKeyEvent& );
void OnKeyUp( wxKeyEvent& ); void OnKeyUp( wxKeyEvent& );
void OnChar( wxKeyEvent& ); void OnChar( wxKeyEvent& );
void OnEraseBackground( wxEraseEvent& );
void OnHideEditor( wxCommandEvent& ); void OnHideEditor( wxCommandEvent& );

View File

@@ -2320,7 +2320,6 @@ wxBEGIN_EVENT_TABLE( wxGrid, wxScrolledCanvas )
EVT_KEY_DOWN( wxGrid::OnKeyDown ) EVT_KEY_DOWN( wxGrid::OnKeyDown )
EVT_KEY_UP( wxGrid::OnKeyUp ) EVT_KEY_UP( wxGrid::OnKeyUp )
EVT_CHAR ( wxGrid::OnChar ) EVT_CHAR ( wxGrid::OnChar )
EVT_ERASE_BACKGROUND( wxGrid::OnEraseBackground )
EVT_COMMAND(wxID_ANY, wxEVT_GRID_HIDE_EDITOR, wxGrid::OnHideEditor ) EVT_COMMAND(wxID_ANY, wxEVT_GRID_HIDE_EDITOR, wxGrid::OnHideEditor )
wxEND_EVENT_TABLE() wxEND_EVENT_TABLE()
@@ -5743,10 +5742,6 @@ void wxGrid::OnChar( wxKeyEvent& event )
} }
} }
void wxGrid::OnEraseBackground(wxEraseEvent&)
{
}
void wxGrid::DoGridProcessTab(wxKeyboardState& kbdState) void wxGrid::DoGridProcessTab(wxKeyboardState& kbdState)
{ {
const bool isForwardTab = !kbdState.ShiftDown(); const bool isForwardTab = !kbdState.ShiftDown();