diff --git a/server/src/main/java/org/elasticsearch/env/Environment.java b/server/src/main/java/org/elasticsearch/env/Environment.java index afe4a814e00..1d1f6e0ade0 100644 --- a/server/src/main/java/org/elasticsearch/env/Environment.java +++ b/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; @@ -118,7 +117,6 @@ public class Environment { pluginsFile = homeFile.resolve("plugins"); List dataPaths = PATH_DATA_SETTING.get(settings); - final ClusterName clusterName = ClusterName.CLUSTER_NAME_SETTING.get(settings); if (nodeLocalStorage) { if (dataPaths.isEmpty() == false) { dataFiles = new Path[dataPaths.size()];