diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-07-08 15:07:58 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-08-25 01:49:32 +0200 |
commit | 684b44d4e64438ab251da00add8ba1fc56f6e15d (patch) | |
tree | 4be4c5f6325e6ac2a4108775322b2e3afda78105 | |
parent | 10fad422df7991eabe1026df96a6e7ac6a46ae4e (diff) |
Remove unnecessary assignment in BanCacheManager::RemoveEntries
-rw-r--r-- | src/bancache.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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 |