Remove unused Component::Component overloads

This commit is contained in:
mniip 2023-04-13 18:48:19 +02:00
parent 8c387a5a00
commit c23eba1921
3 changed files with 2 additions and 37 deletions

View File

@ -8,23 +8,6 @@
using namespace ui; 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): Component::Component(Point position, Point size):
parentstate_(0), parentstate_(0),
_parent(NULL), _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() void Component::Refresh()
{ {
drawn = false; drawn = false;

View File

@ -29,9 +29,7 @@ namespace ui
Graphics * GetGraphics(); Graphics * GetGraphics();
public: public:
Component(Window* parent_state);
Component(Point position, Point size); Component(Point position, Point size);
Component();
virtual ~Component(); virtual ~Component();
void* UserData; void* UserData;

View File

@ -15,7 +15,8 @@ namespace ui
* See sys::Component * See sys::Component
*/ */
class Component; class Component;
class Panel : public Component class Panel : public Component
{ {
public: public: