From 2d2456249a26580c3d1b3ad53da37e77a0f9274f Mon Sep 17 00:00:00 2001
From: Matt Joiner <anacrolix@gmail.com>
Date: Mon, 10 May 2021 13:35:24 +1000
Subject: [PATCH] Remove unused pieceRequestOrder in Client

---
 client.go  | 2 --
 torrent.go | 1 -
 2 files changed, 3 deletions(-)

diff --git a/client.go b/client.go
index bb0f4f4c..3e899549 100644
--- a/client.go
+++ b/client.go
@@ -81,8 +81,6 @@ type Client struct {
 	websocketTrackers websocketTrackers
 
 	activeAnnounceLimiter limiter.Instance
-
-	clientPieceRequestOrder
 }
 
 type ipStr string
diff --git a/torrent.go b/torrent.go
index 6eab0d69..c56ddbd1 100644
--- a/torrent.go
+++ b/torrent.go
@@ -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)
 	})
-- 
2.51.0