From 684b44d4e64438ab251da00add8ba1fc56f6e15d Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 8 Jul 2012 15:07:58 +0200 Subject: Remove unnecessary assignment in BanCacheManager::RemoveEntries --- src/bancache.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/bancache.cpp') diff --git a/src/bancache.cpp b/src/bancache.cpp index 0d83e6762..52449e55e 100644 --- a/src/bancache.cpp +++ b/src/bancache.cpp @@ -117,7 +117,6 @@ unsigned int BanCacheManager::RemoveEntries(const std::string &type, bool positi /* we need to remove this one. */ ServerInstance->Logs->Log("BANCACHE", DEBUG, "BanCacheManager::RemoveEntries(): Removing a hit on " + b->IP); delete b; - b = NULL; BanHash->erase(n); // WORD TO THE WISE: don't use RemoveHit here, because we MUST remove the iterator in a safe way. removed++; } @@ -148,7 +147,6 @@ void BanCacheManager::RehashCache() { /* we need to remove this one. */ delete b; - b = NULL; BanHash->erase(n); // WORD TO THE WISE: don't use RemoveHit here, because we MUST remove the iterator in a safe way. } else -- cgit v1.2.3