mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
refactor: remove unused tr_torrent.dnd_pieces_ (#2296)
This commit is contained in:
parent
0cedfec630
commit
cec7685a64
2 changed files with 1 additions and 4 deletions
|
@ -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 };
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue