Browse Source

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.
Rémi Verschelde 4 years ago
parent
commit
764eee03a4
2 changed files with 0 additions and 8 deletions
  1. 0 4
      scene/scene_string_names.cpp
  2. 0 4
      scene/scene_string_names.h

+ 0 - 4
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");

+ 0 - 4
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