Remove connect *_compat methods

This commit is contained in:
Aaron Franke 2020-12-05 16:01:27 -05:00
parent 91fd6374eb
commit 1b348b3c17
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
11 changed files with 23 additions and 39 deletions

View file

@ -2367,7 +2367,7 @@ void VisualScriptFunctionState::connect_to_signal(Object *p_obj, const String &p
binds.push_back(p_binds[i]);
}
binds.push_back(Ref<VisualScriptFunctionState>(this)); //add myself on the back to avoid dying from unreferencing
p_obj->connect_compat(p_signal, this, "_signal_callback", binds, CONNECT_ONESHOT);
p_obj->connect(p_signal, Callable(this, "_signal_callback"), binds, CONNECT_ONESHOT);
}
bool VisualScriptFunctionState::is_valid() const {