diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 4fa88bb580..a05b46c4df 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -2886,26 +2886,6 @@ Ref GDScriptLanguage::get_orphan_subclass(const String &p_qualified_na return Ref(Object::cast_to(obj)); } -Ref GDScriptLanguage::get_script_by_fully_qualified_name(const String &p_name) { - { - MutexLock lock(mutex); - - SelfList *elem = script_list.first(); - while (elem) { - GDScript *scr = elem->self(); - if (scr->fully_qualified_name == p_name) { - return scr; - } - elem = elem->next(); - } - } - - Ref scr; - scr.instantiate(); - scr->fully_qualified_name = p_name; - return scr; -} - /*************** RESOURCE ***************/ Ref ResourceFormatLoaderGDScript::load(const String &p_path, const String &p_original_path, Error *r_error, bool p_use_sub_threads, float *r_progress, CacheMode p_cache_mode) { diff --git a/modules/gdscript/gdscript.h b/modules/gdscript/gdscript.h index 4522d2d3d7..8662a77b1c 100644 --- a/modules/gdscript/gdscript.h +++ b/modules/gdscript/gdscript.h @@ -656,8 +656,6 @@ public: void add_orphan_subclass(const String &p_qualified_name, const ObjectID &p_subclass); Ref get_orphan_subclass(const String &p_qualified_name); - Ref get_script_by_fully_qualified_name(const String &p_name); - GDScriptLanguage(); ~GDScriptLanguage(); };