2
0
mirror of synced 2025-02-23 14:18:13 +00:00

Remove unused code

This commit is contained in:
Matt Joiner 2017-09-01 10:46:26 +10:00
parent d934ec7e30
commit e3479b0bb3
2 changed files with 0 additions and 11 deletions

View File

@ -4,7 +4,6 @@ import (
"bufio"
"bytes"
"errors"
"expvar"
"fmt"
"io"
"log"
@ -24,8 +23,6 @@ import (
pp "github.com/anacrolix/torrent/peer_protocol"
)
var optimizedCancels = expvar.NewInt("optimizedCancels")
type peerSource string
const (
@ -338,13 +335,6 @@ func (cn *connection) SetInterested(interested bool, msg func(pp.Message) bool)
})
}
var (
// Track connection writer buffer writes and flushes, to determine its
// efficiency.
connectionWriterFlush = expvar.NewInt("connectionWriterFlush")
connectionWriterWrite = expvar.NewInt("connectionWriterWrite")
)
func (cn *connection) fillWriteBuffer(msg func(pp.Message) bool) {
numFillBuffers.Add(1)
rs, i := cn.desiredRequestState()

View File

@ -63,7 +63,6 @@ var (
uploadChunksPosted = expvar.NewInt("uploadChunksPosted")
unexpectedCancels = expvar.NewInt("unexpectedCancels")
postedCancels = expvar.NewInt("postedCancels")
pieceHashedCorrect = expvar.NewInt("pieceHashedCorrect")
pieceHashedNotCorrect = expvar.NewInt("pieceHashedNotCorrect")