diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-04-15 13:39:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-15 13:39:53 +0200 |
commit | b8bd648ad9b530e4e29424efe3a9d0b19387d998 (patch) | |
tree | 9cce80ee827e396e013ae1f7c54aa61d9ae242d2 | |
parent | f109376a8c2ffab8132d58591f9299cf09ca4a7e (diff) | |
parent | 764eee03a438c81ec3a9f28f50201dcd77af96df (diff) |
Merge pull request #47916 from akien-mga/stringnames-mesh_materials-unused
Scene: Remove unused `mesh_materials` StringNames
-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 |