Skip to content

Commit 11a1e25

Browse files
committed
refactor: Drop unused total local variables
`total` local variables are set, modified but never consumed.
1 parent 47f0a2d commit 11a1e25

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/bench.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,11 @@ int main(int argc, char** argv) {
6262
if (!states[0]) {
6363
printf(" -\t");
6464
} else {
65-
double total = 0.0;
6665
for (auto& state : states) {
6766
auto start = std::chrono::steady_clock::now();
6867
minisketch_decode(state, 2 * syndromes, roots.data());
6968
auto stop = std::chrono::steady_clock::now();
7069
std::chrono::duration<double> dur(stop - start);
71-
total += dur.count();
7270
benches.push_back(dur.count());
7371
}
7472
std::sort(benches.begin(), benches.end());
@@ -98,15 +96,13 @@ int main(int argc, char** argv) {
9896
if (!states[0]) {
9997
printf(" -\t");
10098
} else {
101-
double total = 0.0;
10299
for (auto& state : states) {
103100
auto start = std::chrono::steady_clock::now();
104101
for (auto val : data) {
105102
minisketch_add_uint64(state, val);
106103
}
107104
auto stop = std::chrono::steady_clock::now();
108105
std::chrono::duration<double> dur(stop - start);
109-
total += dur.count();
110106
benches.push_back(dur.count());
111107
}
112108
std::sort(benches.begin(), benches.end());

0 commit comments

Comments
 (0)