diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-19 02:35:42 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-19 02:35:42 +0800 |
commit | 4755caeb2d07db057e152df555d58d0dd89bda03 (patch) | |
tree | aa3de18333ae5e82f0b2acbb12839569aefbb18c /eth/peer.go | |
parent | 5422fe51256e45c42939d1bfbcf13e07d2660f8e (diff) | |
download | dexon-4755caeb2d07db057e152df555d58d0dd89bda03.tar.gz dexon-4755caeb2d07db057e152df555d58d0dd89bda03.tar.zst dexon-4755caeb2d07db057e152df555d58d0dd89bda03.zip |
eth: remote a superfluous peerSet method
Diffstat (limited to 'eth/peer.go')
-rw-r--r-- | eth/peer.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/eth/peer.go b/eth/peer.go index 369e16221..a23449acd 100644 --- a/eth/peer.go +++ b/eth/peer.go @@ -243,18 +243,6 @@ func (ps *peerSet) TxLackingPeers(hash common.Hash) []*peer { return list } -// AllPeers retrieves a flat list of all the peers within the set. -func (ps *peerSet) AllPeers() []*peer { - ps.lock.RLock() - defer ps.lock.RUnlock() - - list := make([]*peer, 0, len(ps.peers)) - for _, p := range ps.peers { - list = append(list, p) - } - return list -} - // BestPeer retrieves the known peer with the currently highest total difficulty. func (ps *peerSet) BestPeer() *peer { ps.lock.RLock() |