From 544855c5eaae81b05e1ac00113bb697bf58afc07 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 12 Nov 2022 21:50:48 +0100 Subject: [PATCH] Remove unused IsCanvasWindow() from wxUniv This function existed but was never used, so just remove it. --- include/wx/univ/panel.h | 2 -- include/wx/univ/window.h | 4 ---- 2 files changed, 6 deletions(-) diff --git a/include/wx/univ/panel.h b/include/wx/univ/panel.h index 9dbedf7f0c..2b0df97a96 100644 --- a/include/wx/univ/panel.h +++ b/include/wx/univ/panel.h @@ -29,8 +29,6 @@ public: Create(parent, winid, pos, size, style, name); } - virtual bool IsCanvasWindow() const { return true; } - private: wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel); }; diff --git a/include/wx/univ/window.h b/include/wx/univ/window.h index baab8504e0..b9bc7dbe88 100644 --- a/include/wx/univ/window.h +++ b/include/wx/univ/window.h @@ -140,10 +140,6 @@ public: // methods used by wxColourScheme to choose the colours for this window // -------------------------------------------------------------------- - // return true if this is a panel/canvas window which contains other - // controls only - virtual bool IsCanvasWindow() const { return false; } - // return true if this control can be highlighted when the mouse is over // it (the theme decides itself whether it is really highlighted or not) virtual bool CanBeHighlighted() const { return false; }