From c23eba19217b158de4840ed834f9d5401c4c99cb Mon Sep 17 00:00:00 2001 From: mniip Date: Thu, 13 Apr 2023 18:48:19 +0200 Subject: [PATCH] Remove unused Component::Component overloads --- src/gui/interface/Component.cpp | 34 --------------------------------- src/gui/interface/Component.h | 2 -- src/gui/interface/Panel.h | 3 ++- 3 files changed, 2 insertions(+), 37 deletions(-) diff --git a/src/gui/interface/Component.cpp b/src/gui/interface/Component.cpp index ddeab300d..735e62899 100644 --- a/src/gui/interface/Component.cpp +++ b/src/gui/interface/Component.cpp @@ -8,23 +8,6 @@ using namespace ui; -Component::Component(Window* parent_state): - parentstate_(parent_state), - _parent(NULL), - drawn(false), - textPosition(0, 0), - textSize(0, 0), - iconPosition(0, 0), - menu(NULL), - Position(Point(0,0)), - Size(Point(0,0)), - Enabled(true), - Visible(true), - DoesTextInput(false) -{ - -} - Component::Component(Point position, Point size): parentstate_(0), _parent(NULL), @@ -42,23 +25,6 @@ Component::Component(Point position, Point size): } -Component::Component(): - parentstate_(NULL), - _parent(NULL), - drawn(false), - textPosition(0, 0), - textSize(0, 0), - iconPosition(0, 0), - menu(NULL), - Position(Point(0,0)), - Size(Point(0,0)), - Enabled(true), - Visible(true), - DoesTextInput(false) -{ - -} - void Component::Refresh() { drawn = false; diff --git a/src/gui/interface/Component.h b/src/gui/interface/Component.h index 35409a1cd..20c1d875e 100644 --- a/src/gui/interface/Component.h +++ b/src/gui/interface/Component.h @@ -29,9 +29,7 @@ namespace ui Graphics * GetGraphics(); public: - Component(Window* parent_state); Component(Point position, Point size); - Component(); virtual ~Component(); void* UserData; diff --git a/src/gui/interface/Panel.h b/src/gui/interface/Panel.h index f149b255b..f6a98e617 100644 --- a/src/gui/interface/Panel.h +++ b/src/gui/interface/Panel.h @@ -15,7 +15,8 @@ namespace ui * See sys::Component */ -class Component; + class Component; + class Panel : public Component { public: