From 4d581876bdc76f884786f979036695ec41471feb Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Wed, 12 Nov 2014 18:03:17 +0100 Subject: [PATCH] Cleanup: removed unused field and method Original commit: elastic/x-pack-elasticsearch@058e57f6c4f798f18975bbd41cbd27718041e2d6 --- src/main/java/org/elasticsearch/alerts/AlertManager.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main/java/org/elasticsearch/alerts/AlertManager.java b/src/main/java/org/elasticsearch/alerts/AlertManager.java index 60ee083be7a..ec66ec0e2af 100644 --- a/src/main/java/org/elasticsearch/alerts/AlertManager.java +++ b/src/main/java/org/elasticsearch/alerts/AlertManager.java @@ -19,7 +19,6 @@ import org.elasticsearch.cluster.ClusterChangedEvent; import org.elasticsearch.cluster.ClusterService; import org.elasticsearch.cluster.ClusterStateListener; import org.elasticsearch.common.bytes.BytesReference; -import org.elasticsearch.common.collect.ImmutableList; import org.elasticsearch.common.collect.Tuple; import org.elasticsearch.common.component.AbstractComponent; import org.elasticsearch.common.component.LifecycleListener; @@ -31,7 +30,6 @@ import org.elasticsearch.indices.IndicesService; import org.elasticsearch.threadpool.ThreadPool; import java.io.IOException; -import java.util.List; import java.util.concurrent.ExecutionException; import java.util.concurrent.atomic.AtomicBoolean; @@ -43,7 +41,6 @@ public class AlertManager extends AbstractComponent { private final AlertScheduler scheduler; private final AlertsStore alertsStore; private final TriggerManager triggerManager; - private final ClusterService clusterService; private final AlertActionManager actionManager; private final AlertActionRegistry actionRegistry; private final AtomicBoolean started = new AtomicBoolean(false); @@ -58,7 +55,6 @@ public class AlertManager extends AbstractComponent { this.threadPool = threadPool; this.scheduler.setAlertManager(this); this.alertsStore = alertsStore; - this.clusterService = clusterService; this.triggerManager = triggerManager; this.actionManager = actionManager; this.actionManager.setAlertManager(this); @@ -90,11 +86,6 @@ public class AlertManager extends AbstractComponent { return result.v2(); } - public List getAllAlerts() { - ensureStarted(); - return ImmutableList.copyOf(alertsStore.getAlerts().values()); - } - public boolean isStarted() { return started.get(); }