Skip to content

Commit b9a7f7e

Browse files
committed
Merge #69: refactor: Drop unused total local variables
11a1e25 refactor: Drop unused `total` local variables (Hennadii Stepanov) Pull request description: `total` local variables are set, modified but never consumed. ACKs for top commit: naumenkogs: ACK 11a1e25 sipa: ACK 11a1e25 Tree-SHA512: 3ddfbab1dd63fbf8ae4095eaef3ce1584d0508f7b1b400fe0823bf3925425a5a9a02c333481dfb7564d60aedd59ee7df5c6ba76678eabf67f1f5595969a10892
2 parents 8a5af94 + 11a1e25 commit b9a7f7e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/bench.cpp

-4
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)