From c0d429863cac34746c6fc7c19496c1ab519443f5 Mon Sep 17 00:00:00 2001 From: Howard Date: Thu, 16 Jul 2020 21:25:55 +0800 Subject: [PATCH] remove unused cluster name in environment. (backport of #59605) (#59681) removes an unused variable --- server/src/main/java/org/elasticsearch/env/Environment.java | 2 -- 1 file changed, 2 deletions(-) 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()];