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(); } }