diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2021-04-15 13:01:28 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-04-15 13:02:10 +0200 |
commit | 764eee03a438c81ec3a9f28f50201dcd77af96df (patch) | |
tree | 057173d760f5d067f4b1ec4ada6b0e733433799a /scene | |
parent | c7a4e2196ee08d7ec5190873bd243fbf2727c18f (diff) |
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.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/scene_string_names.cpp | 4 | ||||
-rw-r--r-- | scene/scene_string_names.h | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/scene/scene_string_names.cpp b/scene/scene_string_names.cpp index 892802c103..7575ccd5c3 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 655e49c6f9..a5b489eddc 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 |