diff --git a/core/object/script_language.cpp b/core/object/script_language.cpp index 860e9006a0..75efe2a234 100644 --- a/core/object/script_language.cpp +++ b/core/object/script_language.cpp @@ -45,7 +45,6 @@ thread_local bool ScriptServer::thread_entered = false; bool ScriptServer::scripting_enabled = true; bool ScriptServer::reload_scripts_on_save = false; -ScriptEditRequestFunction ScriptServer::edit_request_func = nullptr; // These need to be the last static variables in this file, since we're exploiting the reverse-order destruction of static variables. static bool is_program_exiting = false; diff --git a/core/object/script_language.h b/core/object/script_language.h index 633e9e52d4..10d8716c89 100644 --- a/core/object/script_language.h +++ b/core/object/script_language.h @@ -35,7 +35,6 @@ #include "core/object/script_backtrace.h" #include "core/object/script_instance.h" #include "core/templates/pair.h" -#include "core/templates/safe_refcount.h" #include "core/variant/typed_array.h" class ScriptLanguage; @@ -71,8 +70,6 @@ class ScriptServer { static bool inheriters_cache_dirty; public: - static ScriptEditRequestFunction edit_request_func; - static void set_scripting_enabled(bool p_enabled); static bool is_scripting_enabled(); _FORCE_INLINE_ static int get_language_count() { return _language_count; } diff --git a/editor/script/script_editor_plugin.cpp b/editor/script/script_editor_plugin.cpp index d7c067925d..77c5033e77 100644 --- a/editor/script/script_editor_plugin.cpp +++ b/editor/script/script_editor_plugin.cpp @@ -3559,27 +3559,6 @@ void ScriptEditor::_help_search(const String &p_text) { help_search_dialog->popup_dialog(p_text); } -void ScriptEditor::_open_script_request(const String &p_path) { - Ref