From 764eee03a438c81ec3a9f28f50201dcd77af96df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 15 Apr 2021 13:01:28 +0200 Subject: [PATCH] Scene: Remove unused `mesh_materials` StringNames They were added in 8be2fabbe5cd846bac5e5a38e55f3fb70e73f2da (2.1 era) but were likely a first attempt that didn't get unused in the end. --- scene/scene_string_names.cpp | 4 ---- scene/scene_string_names.h | 4 ---- 2 files changed, 8 deletions(-) diff --git a/scene/scene_string_names.cpp b/scene/scene_string_names.cpp index 892802c1038..7575ccd5c3b 100644 --- a/scene/scene_string_names.cpp +++ b/scene/scene_string_names.cpp @@ -190,10 +190,6 @@ SceneStringNames::SceneStringNames() { _default = StaticCString::create("default"); - for (int i = 0; i < MAX_MATERIALS; i++) { - mesh_materials[i] = "material/" + itos(i); - } - _window_group = StaticCString::create("_window_group"); _window_input = StaticCString::create("_window_input"); window_input = StaticCString::create("window_input"); diff --git a/scene/scene_string_names.h b/scene/scene_string_names.h index 655e49c6f91..a5b489eddc6 100644 --- a/scene/scene_string_names.h +++ b/scene/scene_string_names.h @@ -216,10 +216,6 @@ public: StringName use_in_baked_light; StringName use_dynamic_gi; #endif - enum { - MAX_MATERIALS = 32 - }; - StringName mesh_materials[MAX_MATERIALS]; }; #endif // SCENE_STRING_NAMES_H