From: Matt Joiner Date: Mon, 1 Nov 2021 00:53:58 +0000 (+1100) Subject: Remove some unused parameter names X-Git-Tag: v1.35.0~2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=b088c08acd1f0374b68060c6ce4fe4aa0d3935f7;p=btrtrc.git Remove some unused parameter names https://deepsource.io/gh/anacrolix/torrent/run/cfd6fa3d-c65b-4bf7-83f7-3bee87c21a4b/go/RVV-B0012 --- diff --git a/storage/bolt.go b/storage/bolt.go index 4473b841..72644c43 100644 --- a/storage/bolt.go +++ b/storage/bolt.go @@ -42,7 +42,7 @@ func (me *boltClient) Close() error { return me.db.Close() } -func (me *boltClient) OpenTorrent(info *metainfo.Info, infoHash metainfo.Hash) (TorrentImpl, error) { +func (me *boltClient) OpenTorrent(_ *metainfo.Info, infoHash metainfo.Hash) (TorrentImpl, error) { t := &boltTorrent{me, infoHash} return TorrentImpl{ Piece: t.Piece, diff --git a/storage/sqlite/direct.go b/storage/sqlite/direct.go index 4fda7d0c..3d51fd31 100644 --- a/storage/sqlite/direct.go +++ b/storage/sqlite/direct.go @@ -38,7 +38,7 @@ type client struct { capacity func() (int64, bool) } -func (c *client) OpenTorrent(info *metainfo.Info, infoHash metainfo.Hash) (storage.TorrentImpl, error) { +func (c *client) OpenTorrent(*metainfo.Info, metainfo.Hash) (storage.TorrentImpl, error) { t := torrent{c.Cache} return storage.TorrentImpl{Piece: t.Piece, Close: t.Close, Capacity: &c.capacity}, nil }