diff options
Diffstat (limited to 'scene/gui/panel_container.cpp')
-rw-r--r-- | scene/gui/panel_container.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/scene/gui/panel_container.cpp b/scene/gui/panel_container.cpp index 62b9296409..6cac15d9f0 100644 --- a/scene/gui/panel_container.cpp +++ b/scene/gui/panel_container.cpp @@ -31,7 +31,6 @@ #include "panel_container.h" Size2 PanelContainer::get_minimum_size() const { - Ref<StyleBox> style; if (has_theme_stylebox("panel")) @@ -41,7 +40,6 @@ Size2 PanelContainer::get_minimum_size() const { Size2 ms; for (int i = 0; i < get_child_count(); i++) { - Control *c = Object::cast_to<Control>(get_child(i)); if (!c || !c->is_visible()) continue; @@ -59,9 +57,7 @@ Size2 PanelContainer::get_minimum_size() const { } void PanelContainer::_notification(int p_what) { - if (p_what == NOTIFICATION_DRAW) { - RID ci = get_canvas_item(); Ref<StyleBox> style; @@ -74,7 +70,6 @@ void PanelContainer::_notification(int p_what) { } if (p_what == NOTIFICATION_SORT_CHILDREN) { - Ref<StyleBox> style; if (has_theme_stylebox("panel")) @@ -90,7 +85,6 @@ void PanelContainer::_notification(int p_what) { } for (int i = 0; i < get_child_count(); i++) { - Control *c = Object::cast_to<Control>(get_child(i)); if (!c || !c->is_visible_in_tree()) continue; |