2
0
mirror of synced 2025-02-24 06:38:14 +00:00

Unused *Client argument to Torrent.writeStatus

This commit is contained in:
Matt Joiner 2016-07-12 21:23:20 +10:00
parent 192bb829fb
commit f5d58b3dc6
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}

View File

@ -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() {