diff --git a/firmware/common/ui_widget.cpp b/firmware/common/ui_widget.cpp index fffe7b96..95deeb87 100644 --- a/firmware/common/ui_widget.cpp +++ b/firmware/common/ui_widget.cpp @@ -222,11 +222,6 @@ void Widget::dirty_overlapping_children_in_rect(const Rect& child_rect) { /* View ******************************************************************/ -void View::set_parent_rect(const Rect new_parent_rect) { - Widget::set_parent_rect(new_parent_rect); - dirty_screen_rect += screen_rect(); -} - void View::paint(Painter& painter) { painter.fill_rectangle( screen_rect(), diff --git a/firmware/common/ui_widget.hpp b/firmware/common/ui_widget.hpp index eac1efe4..a752ffcf 100644 --- a/firmware/common/ui_widget.hpp +++ b/firmware/common/ui_widget.hpp @@ -151,8 +151,6 @@ public: // TODO: ~View() should on_hide() all children? - void set_parent_rect(const Rect new_parent_rect) override; - void paint(Painter& painter) override; void add_child(Widget* const widget); @@ -164,7 +162,6 @@ public: protected: std::vector children_; - Rect dirty_screen_rect; void invalidate_child(Widget* const widget); };