diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-07-26 17:09:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-26 17:09:41 +0200 |
| commit | b2096ba53eb422ae2fbf8b49cf1f4806878127fb (patch) | |
| tree | 4eae08b1d8ed1849e216040dddd5a4999a884907 /modules/gdscript/gdscript.cpp | |
| parent | 94ff5ee535ff3f20685b06e2b959e3a52b2eabbe (diff) | |
| parent | 2b9d9bc3644de19b291c16b2facc418f3d64d4fc (diff) | |
| download | redot-engine-b2096ba53eb422ae2fbf8b49cf1f4806878127fb.tar.gz | |
Merge pull request #40670 from vnen/remove-multilevel-call
Remove multilevel calls
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
| -rw-r--r-- | modules/gdscript/gdscript.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 40ef0aeec6..9170255c02 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -1309,39 +1309,6 @@ Variant GDScriptInstance::call(const StringName &p_method, const Variant **p_arg return Variant(); } -void GDScriptInstance::call_multilevel(const StringName &p_method, const Variant **p_args, int p_argcount) { - GDScript *sptr = script.ptr(); - Callable::CallError ce; - - while (sptr) { - Map<StringName, GDScriptFunction *>::Element *E = sptr->member_functions.find(p_method); - if (E) { - E->get()->call(this, p_args, p_argcount, ce); - return; - } - sptr = sptr->_base; - } -} - -void GDScriptInstance::_ml_call_reversed(GDScript *sptr, const StringName &p_method, const Variant **p_args, int p_argcount) { - if (sptr->_base) { - _ml_call_reversed(sptr->_base, p_method, p_args, p_argcount); - } - - Callable::CallError ce; - - Map<StringName, GDScriptFunction *>::Element *E = sptr->member_functions.find(p_method); - if (E) { - E->get()->call(this, p_args, p_argcount, ce); - } -} - -void GDScriptInstance::call_multilevel_reversed(const StringName &p_method, const Variant **p_args, int p_argcount) { - if (script.ptr()) { - _ml_call_reversed(script.ptr(), p_method, p_args, p_argcount); - } -} - void GDScriptInstance::notification(int p_notification) { //notification is not virtual, it gets called at ALL levels just like in C. Variant value = p_notification; |
