summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scene/gui/control.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp
index 91d6a162f5..068801d0bb 100644
--- a/scene/gui/control.cpp
+++ b/scene/gui/control.cpp
@@ -768,12 +768,6 @@ Control* Control::_find_control_at_pos(CanvasItem* p_node,const Point2& p_global
c->_window_sort_subwindows(); // sort them
- int idx=0;
- for (List<Control*>::Element *E=c->window->subwindows.front();E;E=E->next()) {
-
- if (!E->get()->is_visible())
- continue;
- }
for (List<Control*>::Element *E=c->window->subwindows.back();E;E=E->prev()) {
Control *sw = E->get();