Skip to content

Commit

Permalink
Remove unused Component::Component overloads
Browse files Browse the repository at this point in the history
  • Loading branch information
mniip committed Apr 13, 2023
1 parent 8c387a5 commit c23eba1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 37 deletions.
34 changes: 0 additions & 34 deletions src/gui/interface/Component.cpp
Expand Up @@ -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),
Expand All @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/gui/interface/Component.h
Expand Up @@ -29,9 +29,7 @@ namespace ui
Graphics * GetGraphics();

public:
Component(Window* parent_state);
Component(Point position, Point size);
Component();
virtual ~Component();

void* UserData;
Expand Down
3 changes: 2 additions & 1 deletion src/gui/interface/Panel.h
Expand Up @@ -15,7 +15,8 @@ namespace ui
* See sys::Component
*/

class Component;
class Component;

class Panel : public Component
{
public:
Expand Down

0 comments on commit c23eba1

Please sign in to comment.