diff --git a/include/wx/generic/imaglist.h b/include/wx/generic/imaglist.h index 25157a04f2..227f0c7114 100644 --- a/include/wx/generic/imaglist.h +++ b/include/wx/generic/imaglist.h @@ -25,7 +25,6 @@ public: wxGenericImageList( int width, int height, bool mask = true, int initialCount = 1 ); virtual ~wxGenericImageList(); bool Create( int width, int height, bool mask = true, int initialCount = 1 ); - bool Create(); virtual int GetImageCount() const; virtual bool GetSize( int index, int &width, int &height ) const; @@ -45,6 +44,11 @@ public: int flags = wxIMAGELIST_DRAW_NORMAL, bool solidBackground = false); +#if WXWIN_COMPATIBILITY_3_0 + wxDEPRECATED_MSG("Don't use this overload: it's not portable and does nothing") + bool Create() { return true; } +#endif // WXWIN_COMPATIBILITY_3_0 + // Internal use only const wxBitmap *GetBitmapPtr(int index) const; private: diff --git a/src/generic/imaglist.cpp b/src/generic/imaglist.cpp index aeb31ba57f..5613be69f0 100644 --- a/src/generic/imaglist.cpp +++ b/src/generic/imaglist.cpp @@ -49,11 +49,6 @@ bool wxGenericImageList::Create( int width, int height, bool WXUNUSED(mask), int { m_size = wxSize(width, height); - return Create(); -} - -bool wxGenericImageList::Create() -{ return true; }