mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
p2p/simulations/network: removed unused method
This commit is contained in:
parent
9baa7c5dd6
commit
26037fddb5
1 changed files with 0 additions and 12 deletions
|
|
@ -391,18 +391,6 @@ func (net *Network) GetNodes() (nodes []*Node) {
|
|||
return nodes
|
||||
}
|
||||
|
||||
// GetUpNodes returns the existing nodes that are up
|
||||
func (net *Network) GetUpNodes() (nodes []*Node) {
|
||||
net.lock.Lock()
|
||||
defer net.lock.Unlock()
|
||||
for _, n := range net.Nodes {
|
||||
if n.Up {
|
||||
nodes = append(nodes, n)
|
||||
}
|
||||
}
|
||||
return nodes
|
||||
}
|
||||
|
||||
func (net *Network) getNode(id discover.NodeID) *Node {
|
||||
i, found := net.nodeMap[id]
|
||||
if !found {
|
||||
|
|
|
|||
Loading…
Reference in a new issue