perf: remove unused variables in qt details dialog (#1987)

This commit is contained in:
Charles Kerr 2021-10-18 11:25:43 -05:00 committed by GitHub
parent 462651bb8e
commit 9f639868b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -476,25 +476,16 @@ void DetailsDialog::refreshUI()
else
{
uint64_t left_until_done = 0;
int64_t have_total = 0;
int64_t have_verified = 0;
int64_t have_unverified = 0;
int64_t verified_pieces = 0;
for (Torrent const* const t : torrents)
{
if (t->hasMetadata())
{
have_total += t->haveTotal();
have_unverified += t->haveUnverified();
uint64_t const v = t->haveVerified();
have_verified += v;
if (t->pieceSize())
{
verified_pieces += v / t->pieceSize();
}
size_when_done += t->sizeWhenDone();
left_until_done += t->leftUntilDone();
available += t->sizeWhenDone() - t->leftUntilDone() + t->desiredAvailable();