Remove unused Torrent.numActivePeers

This commit is contained in:
Matt Joiner 2021-11-01 11:49:36 +11:00
parent 87a67db680
commit 8d193edb7e
1 changed files with 0 additions and 7 deletions

View File

@ -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