From e226781a3c7b0f2f8e51fcc1ae84ee4c583df6ad Mon Sep 17 00:00:00 2001 From: Matthias Vallentin Date: Sat, 3 Aug 2013 16:55:29 +0200 Subject: [PATCH] Remove debugging code. --- src/probabilistic/BloomFilter.cc | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/probabilistic/BloomFilter.cc b/src/probabilistic/BloomFilter.cc index 6e3ff763d2..bcab6c9b54 100644 --- a/src/probabilistic/BloomFilter.cc +++ b/src/probabilistic/BloomFilter.cc @@ -11,9 +11,6 @@ #include "../util.h" -// TODO: remove code within these ifdefs after debugging. -#define BLOOMFILTER_DEBUG - using namespace probabilistic; BloomFilter::BloomFilter() @@ -147,18 +144,9 @@ void BasicBloomFilter::Add(const HashKey* key) { Hasher::digest_vector h = hasher->Hash(key); -#ifdef BLOOMFILTER_DEBUG for ( size_t i = 0; i < h.size(); ++i ) - { - BitVector::size_type pos = h[i] % bits->Size(); - fprintf(stderr, "setting bit %lu (was %u)\n", pos, !!(*bits)[pos]); - bits->Set(pos); - } -#else - for ( size_t i = 0; i < h.size(); ++i ) - bits->Set(h[i] % bits->Size()); -#endif - } + bits->Set(h[i] % bits->Size()); + } size_t BasicBloomFilter::Count(const HashKey* key) const {