From 2304ea70f7f98cf1759510b24e3a95ddecb45d2a Mon Sep 17 00:00:00 2001 From: Sam Kleinman Date: Wed, 6 Apr 2022 11:07:21 -0400 Subject: [PATCH] consensus: remove string indented function (#8257) --- internal/consensus/reactor.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/internal/consensus/reactor.go b/internal/consensus/reactor.go index 4bc109515..1c6c99cb9 100644 --- a/internal/consensus/reactor.go +++ b/internal/consensus/reactor.go @@ -299,22 +299,6 @@ func (r *Reactor) String() string { return "ConsensusReactor" } -// StringIndented returns an indented string representation of the Reactor. -func (r *Reactor) StringIndented(indent string) string { - r.mtx.RLock() - defer r.mtx.RUnlock() - - s := "ConsensusReactor{\n" - s += indent + " " + r.state.StringIndented(indent+" ") + "\n" - - for _, ps := range r.peers { - s += indent + " " + ps.StringIndented(indent+" ") + "\n" - } - - s += indent + "}" - return s -} - // GetPeerState returns PeerState for a given NodeID. func (r *Reactor) GetPeerState(peerID types.NodeID) (*PeerState, bool) { r.mtx.RLock()