Browse Source

Remove unused cluster name in environment. (#59605)

Removes an unused variable.
Howard 5 years ago
parent
commit
57ab7d334f
1 changed files with 0 additions and 2 deletions
  1. 0 2
      server/src/main/java/org/elasticsearch/env/Environment.java

+ 0 - 2
server/src/main/java/org/elasticsearch/env/Environment.java

@@ -19,7 +19,6 @@
 
 package org.elasticsearch.env;
 
-import org.elasticsearch.cluster.ClusterName;
 import org.elasticsearch.common.SuppressForbidden;
 import org.elasticsearch.common.io.PathUtils;
 import org.elasticsearch.common.settings.Setting;
@@ -113,7 +112,6 @@ public class Environment {
         pluginsFile = homeFile.resolve("plugins");
 
         List<String> dataPaths = PATH_DATA_SETTING.get(settings);
-        final ClusterName clusterName = ClusterName.CLUSTER_NAME_SETTING.get(settings);
         if (dataPaths.isEmpty() == false) {
             dataFiles = new Path[dataPaths.size()];
             for (int i = 0; i < dataPaths.size(); i++) {