]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Remove unused function
authorMatt Joiner <anacrolix@gmail.com>
Fri, 25 Nov 2016 06:24:29 +0000 (17:24 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 25 Nov 2016 06:24:29 +0000 (17:24 +1100)
client.go

index c457bef6c85d4db12afef1f0cb5df88a4296a769..94c02f02441c860e4070c2393eaaa546b7f5af97 100644 (file)
--- a/client.go
+++ b/client.go
@@ -45,16 +45,6 @@ func (cl *Client) queuePieceCheck(t *Torrent, pieceIndex int) {
        go t.verifyPiece(pieceIndex)
 }
 
-// Queue a piece check if one isn't already queued, and the piece has never
-// been checked before.
-func (cl *Client) queueFirstHash(t *Torrent, piece int) {
-       p := &t.pieces[piece]
-       if p.EverHashed || p.Hashing || p.QueuedForHash || t.pieceComplete(piece) {
-               return
-       }
-       cl.queuePieceCheck(t, piece)
-}
-
 // Clients contain zero or more Torrents. A Client manages a blocklist, the
 // TCP/UDP protocol ports, and DHT as desired.
 type Client struct {