From: Matt Joiner Date: Fri, 25 Nov 2016 06:24:29 +0000 (+1100) Subject: Remove unused function X-Git-Tag: v1.0.0~526 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=aa697794ccc64584a0950490fd45523c81f303a1;p=btrtrc.git Remove unused function --- diff --git a/client.go b/client.go index c457bef6..94c02f02 100644 --- 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 {