Remove wrong wxGrid::GetMainWindowOfCompositeControl() override

This method is supposed to be overridden in the sub-windows of a
composite control (and is indeed correctly implemented in
wxGridSubwindow), but it doesn't make any sense to implement it in the
parent window itself.

This method was probably never executed (which is how the problem went
unnoticed for 10+ years since 760be3f7cb),
but it's still wrong to define it here, so remove it.
This commit is contained in:
Vadim Zeitlin
2019-10-18 03:45:31 +02:00
parent 9a424602e4
commit 38247f596c

View File

@@ -1947,8 +1947,6 @@ public:
// override some base class functions // override some base class functions
virtual wxWindow *GetMainWindowOfCompositeControl() wxOVERRIDE
{ return (wxWindow*)m_gridWin; }
virtual void Fit() wxOVERRIDE; virtual void Fit() wxOVERRIDE;
// implementation only // implementation only