Removed unnecessary debug calculation

This commit is contained in:
Sebastian Messmer 2015-09-29 20:04:12 +02:00
parent 959ef62a38
commit c9f07762a4

View File

@ -96,10 +96,8 @@ void Cache<Key, Value>::_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<Value> oldEntry = _popOldEntry();
while (oldEntry != boost::none) {
++num;
oldEntry = _popOldEntry();
}
}