From dfa58d30ce8886adfd42b41983fb132c783683a1 Mon Sep 17 00:00:00 2001 From: Mauro Stettler Date: Thu, 4 Jan 2018 14:28:59 +0800 Subject: [PATCH] remove unnecessary method thisNode() --- cluster/manager.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cluster/manager.go b/cluster/manager.go index d74752932c..a6fc95c98c 100644 --- a/cluster/manager.go +++ b/cluster/manager.go @@ -471,10 +471,6 @@ func (m *SingleNodeManager) SetState(state NodeState) { } func (m *SingleNodeManager) ThisNode() Node { - return m.thisNode() -} - -func (m *SingleNodeManager) thisNode() HTTPNode { m.RLock() defer m.RUnlock() return m.node