Remove unnecessary wxGrid::OnPaint()

This method was explicitly defined to do nothing, so just remove it.

No real changes.
This commit is contained in:
Vadim Zeitlin
2020-01-24 02:29:34 +01:00
parent b08b697665
commit a5807b8fcf
2 changed files with 0 additions and 8 deletions

View File

@@ -2361,7 +2361,6 @@ protected:
int row, int col,
const wxMouseEvent& mouseEv);
void OnPaint( wxPaintEvent& );
void OnSize( wxSizeEvent& );
void OnKeyDown( wxKeyEvent& );
void OnKeyUp( wxKeyEvent& );

View File

@@ -2321,7 +2321,6 @@ void wxGridWindow::OnFocus(wxFocusEvent& event)
/////////////////////////////////////////////////////////////////////
wxBEGIN_EVENT_TABLE( wxGrid, wxScrolledCanvas )
EVT_PAINT( wxGrid::OnPaint )
EVT_SIZE( wxGrid::OnSize )
EVT_KEY_DOWN( wxGrid::OnKeyDown )
EVT_KEY_UP( wxGrid::OnKeyUp )
@@ -5267,12 +5266,6 @@ wxGrid::SendEvent(wxEventType type, int row, int col, const wxString& s)
return claimed ? 1 : 0;
}
void wxGrid::OnPaint( wxPaintEvent& WXUNUSED(event) )
{
// needed to prevent zillions of paint events on MSW
wxPaintDC dc(this);
}
void wxGrid::Refresh(bool eraseb, const wxRect* rect)
{
// Don't do anything if between Begin/EndBatch...