From f5d58b3dc656444094812a6d0ef820d7c74e9dfb Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 12 Jul 2016 21:23:20 +1000 Subject: [PATCH] Unused *Client argument to Torrent.writeStatus --- client.go | 2 +- torrent.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index a8266584..2ee5239b 100644 --- a/client.go +++ b/client.go @@ -182,7 +182,7 @@ func (cl *Client) WriteStatus(_w io.Writer) { w.WriteString("") } fmt.Fprint(w, "\n") - t.writeStatus(w, cl) + t.writeStatus(w) fmt.Fprintln(w) } } diff --git a/torrent.go b/torrent.go index aa7247cb..29eec4c1 100644 --- 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() {