1
0
Fork 0
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:
Charles Kerr 2021-12-09 20:54:44 -06:00 committed by GitHub
parent 0cedfec630
commit cec7685a64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View file

@ -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 };
}

View file

@ -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