From 5d1c79d21831517b0b51f50aa4e7c9a726248e6f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 12 Nov 2021 17:51:17 +0000 Subject: [PATCH] Remove unnecessary wxToolbook::SetImageList() override This wasn't doing anything and is just unnecessary. --- include/wx/toolbook.h | 1 - src/generic/toolbkg.cpp | 9 --------- 2 files changed, 10 deletions(-) diff --git a/include/wx/toolbook.h b/include/wx/toolbook.h index fd868226cb..365fed48f0 100644 --- a/include/wx/toolbook.h +++ b/include/wx/toolbook.h @@ -81,7 +81,6 @@ public: int imageId = NO_IMAGE) wxOVERRIDE; virtual int SetSelection(size_t n) wxOVERRIDE { return DoSetSelection(n, SetSelection_SendEvent); } virtual int ChangeSelection(size_t n) wxOVERRIDE { return DoSetSelection(n); } - virtual void SetImageList(wxImageList *imageList) wxOVERRIDE; virtual bool DeleteAllPages() wxOVERRIDE; virtual int HitTest(const wxPoint& pt, long *flags = NULL) const wxOVERRIDE; diff --git a/src/generic/toolbkg.cpp b/src/generic/toolbkg.cpp index 51895710e0..1ca04469b4 100644 --- a/src/generic/toolbkg.cpp +++ b/src/generic/toolbkg.cpp @@ -173,15 +173,6 @@ bool wxToolbook::SetPageImage(size_t n, int imageId) return true; } -// ---------------------------------------------------------------------------- -// image list stuff -// ---------------------------------------------------------------------------- - -void wxToolbook::SetImageList(wxImageList *imageList) -{ - wxBookCtrlBase::SetImageList(imageList); -} - // ---------------------------------------------------------------------------- // selection // ----------------------------------------------------------------------------