From c9f07762a4ae0d66c33b33e8da441e5191696fa2 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Tue, 29 Sep 2015 20:04:12 +0200 Subject: [PATCH] Removed unnecessary debug calculation --- implementations/caching/cache/Cache.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/implementations/caching/cache/Cache.h b/implementations/caching/cache/Cache.h index 007f2023..d6fa2bb6 100644 --- a/implementations/caching/cache/Cache.h +++ b/implementations/caching/cache/Cache.h @@ -96,10 +96,8 @@ void Cache::_popOldEntries() { // This function can be called in parallel by multiple threads and will then cause the Value destructors // to be called in parallel. The call to _popOldEntry() is synchronized to avoid race conditions, // but the Value destructor is called in this function which is not synchronized. - int num = 0; boost::optional oldEntry = _popOldEntry(); while (oldEntry != boost::none) { - ++num; oldEntry = _popOldEntry(); } }