Skip to content

Commit

Permalink
Unnecessary array operation and code in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tonihele committed Apr 28, 2024
1 parent dbaff3f commit 44d45f5
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -600,19 +600,10 @@ public void setMatDefList(final String[] matDefs, String selected) {
jComboBox1.addItem("");
List<String> matDefList = Arrays.asList(matDefs);
Collections.sort(matDefList);
String[] sortedMatDefs = matDefList.toArray(String[]::new);
for (String string : sortedMatDefs) {
jComboBox1.addItem(string);
for (String matDef : matDefList) {
jComboBox1.addItem(matDef);
}

// jComboBox1.addItem("Common/MatDefs/Light/Lighting.j3md");
// jComboBox1.addItem("Common/MatDefs/Misc/Unshaded.j3md");
// jComboBox1.addItem("Common/MatDefs/Misc/Particle.j3md");
// jComboBox1.addItem("Common/MatDefs/Misc/Sky.j3md");
// jComboBox1.addItem("Common/MatDefs/Gui/Gui.j3md");
// jComboBox1.addItem("Common/MatDefs/Terrain/TerrainLighting.j3md");
// jComboBox1.addItem("Common/MatDefs/Terrain/Terrain.j3md");
// jComboBox1.addItem("Common/MatDefs/Misc/ShowNormals.j3md");
jComboBox1.setSelectedItem(selected);
materialFile = prop;
}
Expand Down

0 comments on commit 44d45f5

Please sign in to comment.