Remove redundant code

This commit is contained in:
kssenii 2023-03-22 16:51:30 +01:00
parent c35deb8094
commit 876fb55156

View File

@ -962,11 +962,6 @@ void FileCache::performDelayedRemovalOfDeletedKeysFromMetadata(const CacheMetada
/// In this case it will work fine because on each attempt to add any key to cache /// In this case it will work fine because on each attempt to add any key to cache
/// we perform this delayed removal of deleted keys. /// we perform this delayed removal of deleted keys.
/// We must also lock the key.
/// FIXME: I forgot why.
auto key_metadata = it->second;
auto key_lock = key_metadata->lock();
/// Remove key from metadata. /// Remove key from metadata.
metadata.erase(it); metadata.erase(it);