From 19f19cdb84d61b04e6744dcbee06a536a447ebcd Mon Sep 17 00:00:00 2001 From: Yuri van Oers Date: Tue, 15 Jun 2021 00:08:27 +0200 Subject: [PATCH] Remove unused code --- dkron/agent.go | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/dkron/agent.go b/dkron/agent.go index 2393263e0..d1bbe93cd 100644 --- a/dkron/agent.go +++ b/dkron/agent.go @@ -594,33 +594,6 @@ func (a *Agent) IsLeader() bool { return a.raft.State() == raft.Leader } -// Members is used to return the members of the serf cluster -func (a *Agent) Members() []serf.Member { - return a.serf.Members() -} - -// LocalMember is used to return the local node -func (a *Agent) LocalMember() serf.Member { - return a.serf.LocalMember() -} - -// Leader is used to return the Raft leader -func (a *Agent) Leader() raft.ServerAddress { - return a.raft.Leader() -} - -// Servers returns a list of known server -func (a *Agent) Servers() (members []*ServerParts) { - for _, member := range a.serf.Members() { - ok, parts := isServer(member) - if !ok || member.Status != serf.StatusAlive { - continue - } - members = append(members, parts) - } - return members -} - // LocalServers returns a list of the local known server func (a *Agent) LocalServers() (members []*ServerParts) { for _, member := range a.serf.Members() {