From cec7685a64c541e579162e3e686027fb0ad1156b Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 9 Dec 2021 20:54:44 -0600 Subject: [PATCH] refactor: remove unused tr_torrent.dnd_pieces_ (#2296) --- libtransmission/torrent.cc | 1 - libtransmission/torrent.h | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/libtransmission/torrent.cc b/libtransmission/torrent.cc index fc42eec04..30c244e68 100644 --- a/libtransmission/torrent.cc +++ b/libtransmission/torrent.cc @@ -602,7 +602,6 @@ static void torrentInitFromInfoDict(tr_torrent* tor) tor->file_priorities_.reset(&tor->fpm_); tor->files_wanted_.reset(&tor->fpm_); - tor->dnd_pieces_ = tr_bitfield{ tor->info.pieceCount }; tor->checked_pieces_ = tr_bitfield{ tor->info.pieceCount }; } diff --git a/libtransmission/torrent.h b/libtransmission/torrent.h index 39c7ce30d..593e493ad 100644 --- a/libtransmission/torrent.h +++ b/libtransmission/torrent.h @@ -367,7 +367,7 @@ public: return checked; } - void initCheckedPieces(tr_bitfield const& checked, time_t const* mtimes /*fileCount*/) + void initCheckedPieces(tr_bitfield const& checked, time_t const* mtimes /*fileCount()*/) { TR_ASSERT(std::size(checked) == info.pieceCount); checked_pieces_ = checked; @@ -391,8 +391,6 @@ public: tr_info info = {}; - tr_bitfield dnd_pieces_ = tr_bitfield{ 0 }; - tr_bitfield checked_pieces_ = tr_bitfield{ 0 }; // TODO(ckerr): make private once some of torrent.cc's `tr_torrentFoo()` methods are member functions