Remove some code duplication in TCacheMap

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2259 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2011-01-08 22:07:36 +00:00
parent 142eebcf9b
commit 5ff2fce9d9
+1 -6
View File
@@ -267,12 +267,7 @@ public:
* @param uTTL the time-to-live for this specific item
*/
void AddItem(const K& Item, unsigned int uTTL) {
if (!uTTL) { // If time-to-live is zero we don't want to waste our time adding it
RemItem(Item); // Remove the item incase it already exists
return;
}
m_mItems[Item] = value(CUtils::GetMillTime() + uTTL, V());
AddItem(Item, V(), uTTL);
}
/**