projects
/
btrtrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
192bb82
)
Unused *Client argument to Torrent.writeStatus
author
Matt Joiner <anacrolix@gmail.com>
Tue, 12 Jul 2016 11:23:20 +0000 (21:23 +1000)
committer
Matt Joiner <anacrolix@gmail.com>
Tue, 12 Jul 2016 11:23:20 +0000 (21:23 +1000)
client.go
patch
|
blob
|
history
torrent.go
patch
|
blob
|
history
diff --git
a/client.go
b/client.go
index a82665846b21f5b4e8b8cdf7ef31b49274bacf53..2ee5239b6e35bfa92be2e826155604c38df82c4c 100644
(file)
--- a/
client.go
+++ b/
client.go
@@
-182,7
+182,7
@@
func (cl *Client) WriteStatus(_w io.Writer) {
w.WriteString("<missing metainfo>")
}
fmt.Fprint(w, "\n")
- t.writeStatus(w
, cl
)
+ t.writeStatus(w)
fmt.Fprintln(w)
}
}
diff --git
a/torrent.go
b/torrent.go
index aa7247cb368e051be54039f4be73ab36c1a425bb..29eec4c11b0e78be30517c40bbdae0415d79696f 100644
(file)
--- a/
torrent.go
+++ b/
torrent.go
@@
-398,7
+398,7
@@
func pieceStateRunStatusChars(psr PieceStateRun) (ret string) {
return
}
-func (t *Torrent) writeStatus(w io.Writer
, cl *Client
) {
+func (t *Torrent) writeStatus(w io.Writer) {
fmt.Fprintf(w, "Infohash: %x\n", t.infoHash)
fmt.Fprintf(w, "Metadata length: %d\n", t.metadataSize())
if !t.haveInfo() {