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