X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=piece.go;h=680675bab3d0f8b1d94c9d1183f211b3e0ae0c28;hb=39bd8fc5a05931635f189ad2884ccc51f7ad1760;hp=d892a406e809843af1eee379f28c5171724e2e25;hpb=0235dd38013df9e8deaf77a2f5656a6cb96ebbc0;p=btrtrc.git diff --git a/piece.go b/piece.go index d892a406..680675ba 100644 --- a/piece.go +++ b/piece.go @@ -1,7 +1,6 @@ package torrent import ( - "encoding/gob" "fmt" "sync" @@ -41,8 +40,6 @@ type Piece struct { // Connections that have written data to this piece since its last check. // This can include connections that have closed. dirtiers map[*Peer]struct{} - - undirtiedChunksIter undirtiedChunksIter } func (p *Piece) String() string { @@ -244,10 +241,6 @@ func (p *Piece) State() PieceState { return p.t.PieceState(p.index) } -func init() { - gob.Register(undirtiedChunksIter{}) -} - func (p *Piece) requestIndexOffset() RequestIndex { return p.t.pieceRequestIndexOffset(p.index) }