summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorClay John <claynjohn@gmail.com>2022-10-27 09:47:34 -0700
committerGitHub <noreply@github.com>2022-10-27 09:47:34 -0700
commitd1cc93af898cb62a4579234936bc1b66cd1852da (patch)
tree4a48c9bbf95ed849d117e4d03164ea7dcd644092 /scene/main
parent682156e1f0b6fba8debba7c88a0a733e95baaac3 (diff)
parent5ee449efec44a1a1ecbcc7eebdb5d768e1decdcf (diff)
Merge pull request #67832 from Sauermann/fix-remove-unnecessary-casts
Remove unnecessary casts
Diffstat (limited to 'scene/main')
-rw-r--r--scene/main/viewport.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index a2963eadd5..1de3caaa97 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -1403,10 +1403,6 @@ Control *Viewport::gui_find_control(const Point2 &p_global) {
}
Control *Viewport::_gui_find_control_at_pos(CanvasItem *p_node, const Point2 &p_global, const Transform2D &p_xform, Transform2D &r_inv_xform) {
- if (Object::cast_to<Viewport>(p_node)) {
- return nullptr;
- }
-
if (!p_node->is_visible()) {
return nullptr; // Canvas item hidden, discard.
}