Browse Source

Merge pull request #72667 from KoBeWi/short-lived_function

Remove unused `has_global_classes()`
Rémi Verschelde 2 years ago
parent
commit
eb91e909a7
2 changed files with 0 additions and 5 deletions
  1. 0 4
      core/object/script_language.cpp
  2. 0 1
      core/object/script_language.h

+ 0 - 4
core/object/script_language.cpp

@@ -369,10 +369,6 @@ void ScriptServer::save_global_classes() {
 	ProjectSettings::get_singleton()->store_global_class_list(gcarr);
 }
 
-bool ScriptServer::has_global_classes() {
-	return !global_classes.is_empty();
-}
-
 String ScriptServer::get_global_class_cache_file_path() {
 	return ProjectSettings::get_singleton()->get_global_class_list_path();
 }

+ 0 - 1
core/object/script_language.h

@@ -91,7 +91,6 @@ public:
 	static void get_global_class_list(List<StringName> *r_global_classes);
 	static void get_inheriters_list(const StringName &p_base_type, List<StringName> *r_classes);
 	static void save_global_classes();
-	static bool has_global_classes();
 	static String get_global_class_cache_file_path();
 
 	static void init_languages();