0

Remove set but otherwise unused variables

Recent Clang versions have enhanced -Wunused-but-set-variable which now
warns about these.

Bug: 1309955
Change-Id: Ie4e2efd0bbb23be246597fed516f8d30201507ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3556182
Auto-Submit: Arthur Eubanks <aeubanks@google.com>
Reviewed-by: Will Harris <wfh@chromium.org>
Commit-Queue: Will Harris <wfh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#986584}
This commit is contained in:
Arthur Eubanks
2022-03-29 17:56:00 +00:00
committed by Chromium LUCI CQ
parent 2eb0d79168
commit 99ed352bd8

@ -314,14 +314,11 @@ class AssignmentCandidates {
void ApplyPendingUpdates() {
// TODO(sra): try to walk |pending_updates_| and |label_to_score_| in
// lockstep. Try to batch updates to |queue_|.
size_t zeroes = 0;
for (LabelToScore::iterator p = pending_updates_.begin();
p != pending_updates_.end();
++p) {
if (p->second != 0)
Update(p->first, p->second);
else
++zeroes;
}
pending_updates_.clear();
}