summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-03 15:46:32 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-03 15:46:32 +0100
commiteb91e909a7e2a4d905b1511de9cb53d949df82fc (patch)
tree1e7076ccf434a4591b53a323544a17302c1ff7df /core
parentecbf087324ce2621fc611a193245e7b0baf9660c (diff)
parentc1cc8fd87f221176b4201fda43a8231198075f0d (diff)
Merge pull request #72667 from KoBeWi/short-lived_function
Remove unused `has_global_classes()`
Diffstat (limited to 'core')
-rw-r--r--core/object/script_language.cpp4
-rw-r--r--core/object/script_language.h1
2 files changed, 0 insertions, 5 deletions
diff --git a/core/object/script_language.cpp b/core/object/script_language.cpp
index 61f5cfc22a..1d53cf66d4 100644
--- a/core/object/script_language.cpp
+++ b/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();
}
diff --git a/core/object/script_language.h b/core/object/script_language.h
index b1393c7196..14cc30e029 100644
--- a/core/object/script_language.h
+++ b/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();