diff options
| author | practicalswift <[email protected]> | 2018-07-26 16:33:45 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-08-02 14:30:53 +0200 |
| commit | cdf4089457856bdfe336b6f4b337d7e1ea4fdbd3 (patch) | |
| tree | 9c7e66306acaff0756d5a871b8556220f5a90bfa /src/bench/rollingbloom.cpp | |
| parent | gui: Pull initial 017x translations from transifex (diff) | |
| download | discoin-cdf4089457856bdfe336b6f4b337d7e1ea4fdbd3.tar.xz discoin-cdf4089457856bdfe336b6f4b337d7e1ea4fdbd3.zip | |
Remove redundant assignments (dead stores)
Diffstat (limited to 'src/bench/rollingbloom.cpp')
| -rw-r--r-- | src/bench/rollingbloom.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bench/rollingbloom.cpp b/src/bench/rollingbloom.cpp index f7f72605d..f1363557f 100644 --- a/src/bench/rollingbloom.cpp +++ b/src/bench/rollingbloom.cpp @@ -12,7 +12,6 @@ static void RollingBloom(benchmark::State& state) CRollingBloomFilter filter(120000, 0.000001); std::vector<unsigned char> data(32); uint32_t count = 0; - uint64_t match = 0; while (state.KeepRunning()) { count++; data[0] = count; @@ -25,7 +24,7 @@ static void RollingBloom(benchmark::State& state) data[1] = count >> 16; data[2] = count >> 8; data[3] = count; - match += filter.contains(data); + filter.contains(data); } } |