diff options
Diffstat (limited to 'core/os/main_loop.cpp')
-rw-r--r-- | core/os/main_loop.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/os/main_loop.cpp b/core/os/main_loop.cpp index b29e3f6142..7c00af8d1f 100644 --- a/core/os/main_loop.cpp +++ b/core/os/main_loop.cpp @@ -33,7 +33,6 @@ #include "core/script_language.h" void MainLoop::_bind_methods() { - ClassDB::bind_method(D_METHOD("init"), &MainLoop::init); ClassDB::bind_method(D_METHOD("iteration", "delta"), &MainLoop::iteration); ClassDB::bind_method(D_METHOD("idle", "delta"), &MainLoop::idle); @@ -56,12 +55,10 @@ void MainLoop::_bind_methods() { }; void MainLoop::set_init_script(const Ref<Script> &p_init_script) { - init_script = p_init_script; } void MainLoop::init() { - if (init_script.is_valid()) set_script(init_script); @@ -69,14 +66,12 @@ void MainLoop::init() { get_script_instance()->call("_initialize"); } bool MainLoop::iteration(float p_time) { - if (get_script_instance()) return get_script_instance()->call("_iteration", p_time); return false; } bool MainLoop::idle(float p_time) { - if (get_script_instance()) return get_script_instance()->call("_idle", p_time); @@ -84,7 +79,6 @@ bool MainLoop::idle(float p_time) { } void MainLoop::finish() { - if (get_script_instance()) { get_script_instance()->call("_finalize"); set_script(Variant()); //clear script |