Remove set_drag_forwarding_compat()

This commit is contained in:
kobewi
2023-01-14 03:37:19 +01:00
parent a51ca2beaf
commit 59ea36b87c
33 changed files with 34 additions and 152 deletions

View File

@ -1821,19 +1821,6 @@ bool Control::is_focus_owner_in_shortcut_context() const {
// Drag and drop handling.
void Control::set_drag_forwarding_compat(Object *p_base) {
if (p_base != nullptr) {
data.forward_drag = Callable(p_base, "_get_drag_data_fw").bind(this);
data.forward_can_drop = Callable(p_base, "_can_drop_data_fw").bind(this);
data.forward_drop = Callable(p_base, "_drop_data_fw").bind(this);
} else {
data.forward_drag = Callable();
data.forward_can_drop = Callable();
data.forward_drop = Callable();
}
}
void Control::set_drag_forwarding(const Callable &p_drag, const Callable &p_can_drop, const Callable &p_drop) {
data.forward_drag = p_drag;
data.forward_can_drop = p_can_drop;