diff options
| author | MarcoFalke <[email protected]> | 2018-08-27 13:39:24 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-08-27 13:39:46 -0400 |
| commit | fea4e9eca58b6ef69b413a5fa8efb5388c405fdd (patch) | |
| tree | f2e0778c8e9556427d7130cf4265ce8092711f82 /src/bench/rollingbloom.cpp | |
| parent | Merge #13769: Mark single-argument constructors "explicit" (diff) | |
| parent | Remove unused variable (diff) | |
| download | discoin-fea4e9eca58b6ef69b413a5fa8efb5388c405fdd.tar.xz discoin-fea4e9eca58b6ef69b413a5fa8efb5388c405fdd.zip | |
Merge #13767: Remove redundant assignments (dead stores)
dd777f3e12 Remove unused variable (practicalswift)
cdf4089457 Remove redundant assignments (dead stores) (practicalswift)
Pull request description:
Remove redundant assignments (dead stores).
Tree-SHA512: e852059b22a161c34a0f18a6a6ed798e2b35e6d2b9f23c526af0ec33e01f6a5bb1fa5ada6671ba183d7b02393ff0d397be5aa4b4e2edbd5e604c9a76ac48d249
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 43e763504..0a99ea318 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); } } |