mDbItemMap.insert(DbItemMap::value_type(primaryKey, dbItemImpl));
}
+void
+KeychainImpl::didDeleteItem(const ItemImpl *inItemImpl)
+{
+ // Sent sent by CCallbackMgr.
+ debug("kcnotify", "%p notified that item %p was deleted", this, inItemImpl);
+ PrimaryKey primaryKey = inItemImpl->primaryKey();
+ StLock<Mutex> _(mDbItemMapLock);
+ DbItemMap::iterator it = mDbItemMap.find(primaryKey);
+ if (it != mDbItemMap.end())
+ mDbItemMap.erase(it);
+}
+
void
KeychainImpl::removeItem(const PrimaryKey &primaryKey, const ItemImpl *inItemImpl)
{