Remove unused Torrent.numActivePeers
This commit is contained in:
parent
87a67db680
commit
8d193edb7e
|
@ -1379,13 +1379,6 @@ func (t *Torrent) decPeerPieceAvailability(p *Peer) {
|
|||
})
|
||||
}
|
||||
|
||||
func (t *Torrent) numActivePeers() (num int) {
|
||||
t.iterPeers(func(*Peer) {
|
||||
num++
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
func (t *Torrent) assertPendingRequests() {
|
||||
if !check {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue