From cac1c29ec506a399092860609ed362b673ee5338 Mon Sep 17 00:00:00 2001 From: Preetha Appan Date: Tue, 29 Aug 2017 19:56:01 -0500 Subject: [PATCH] Remove unused function --- agent/router/manager.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/agent/router/manager.go b/agent/router/manager.go index d82ceb6c5..288a30bd0 100644 --- a/agent/router/manager.go +++ b/agent/router/manager.go @@ -229,14 +229,6 @@ func (m *Manager) saveServerList(l serverList) { m.listValue.Store(l) } -func makeIdAddrMap(list serverList) map[string]string { - ret := make(map[string]string) - for _, server := range list.servers { - ret[server.ID] = server.Addr.String() - } - return ret -} - // New is the only way to safely create a new Manager struct. func New(logger *log.Logger, shutdownCh chan struct{}, clusterInfo ManagerSerfCluster, connPoolPinger Pinger) (m *Manager) { m = new(Manager)