Skip to content

Commit

Permalink
Stackwidget: cleanup - remove unneeded methods
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoiast committed Jan 9, 2024
1 parent d8a1d8e commit f65da7a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
10 changes: 0 additions & 10 deletions src/stackwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,3 @@ auto Stackwidget::get_page_count() const -> size_t {
// TODO - this is wrong, as sub items can be layouts not only widgets
return layout->sub_items.size();
}

auto Stackwidget::draw() -> void {
// TODO - why the fial?
Widget::draw();
}

auto Stackwidget::relayout(Position p, Size s) -> void {
// TODO - why the fial?
Widget::relayout(p, s);
}
3 changes: 0 additions & 3 deletions src/stackwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,4 @@ struct Stackwidget : Widget {
auto set_current_page(int i) -> void;
auto remove_page(int i) -> void;
auto get_page_count() const -> size_t;

virtual auto draw() -> void override;
virtual auto relayout(Position p, Size s) -> void override;
};

0 comments on commit f65da7a

Please sign in to comment.