diff options
author | Gilles Roudière <gilles.roudiere@gmail.com> | 2022-02-03 11:59:32 +0100 |
---|---|---|
committer | Gilles Roudière <gilles.roudiere@gmail.com> | 2022-02-03 11:59:32 +0100 |
commit | 73e784de1e95cfdf775e00e608114f5295813060 (patch) | |
tree | 04ab3d31b9d87027f0a899c24081fea21e0cd7ca /scene/gui/control.cpp | |
parent | 36880714e49f0f3662f7da9d1e2e4719f03fab53 (diff) |
Remove get_focus_owner() from Control, replaced by get_viewport()->gui_get_focus_owner()
Diffstat (limited to 'scene/gui/control.cpp')
-rw-r--r-- | scene/gui/control.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index b32b32e3b9..fdae8e2f1f 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -2599,11 +2599,6 @@ Control::MouseFilter Control::get_mouse_filter() const { return data.mouse_filter; } -Control *Control::get_focus_owner() const { - ERR_FAIL_COND_V(!is_inside_tree(), nullptr); - return get_viewport()->gui_get_focus_owner(); -} - void Control::warp_mouse(const Point2 &p_to_pos) { ERR_FAIL_COND(!is_inside_tree()); get_viewport()->warp_mouse(get_global_transform().xform(p_to_pos)); @@ -2893,7 +2888,6 @@ void Control::_bind_methods() { ClassDB::bind_method(D_METHOD("release_focus"), &Control::release_focus); ClassDB::bind_method(D_METHOD("find_prev_valid_focus"), &Control::find_prev_valid_focus); ClassDB::bind_method(D_METHOD("find_next_valid_focus"), &Control::find_next_valid_focus); - ClassDB::bind_method(D_METHOD("get_focus_owner"), &Control::get_focus_owner); ClassDB::bind_method(D_METHOD("set_h_size_flags", "flags"), &Control::set_h_size_flags); ClassDB::bind_method(D_METHOD("get_h_size_flags"), &Control::get_h_size_flags); |