]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Remove unused pieceRequestOrder in Client
authorMatt Joiner <anacrolix@gmail.com>
Mon, 10 May 2021 03:35:24 +0000 (13:35 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 7 Jun 2021 03:01:39 +0000 (13:01 +1000)
client.go
torrent.go

index bb0f4f4c28a67b8e86b50344a2d1fd5a65a53536..3e899549d7c5c1215791c653918213a6a22cbb55 100644 (file)
--- a/client.go
+++ b/client.go
@@ -81,8 +81,6 @@ type Client struct {
        websocketTrackers websocketTrackers
 
        activeAnnounceLimiter limiter.Instance
-
-       clientPieceRequestOrder
 }
 
 type ipStr string
index 6eab0d69e616686a5c60787f560adec6b0818d0a..c56ddbd181ecaf24d7969bca7db3d6d4b1a7d337 100644 (file)
@@ -412,7 +412,6 @@ func (t *Torrent) setInfo(info *metainfo.Info) error {
 
 // This seems to be all the follow-up tasks after info is set, that can't fail.
 func (t *Torrent) onSetInfo() {
-       t.cl.clientPieceRequestOrder.addPieces(t, t.numPieces())
        t.iterPeers(func(p *Peer) {
                p.onGotInfo(t.info)
        })