Tiny optimization.

This commit is contained in:
JoelKatz
2012-01-27 11:34:55 -08:00
parent 110a4a47f1
commit 7885439bb4

View File

@@ -412,8 +412,7 @@ bool SHAMap::hasItem(const uint256& id)
boost::recursive_mutex::scoped_lock sl(mLock);
SHAMapLeafNode::pointer leaf=walkToLeaf(id, false, false);
if(!leaf) return false;
SHAMapItem::pointer item=leaf->findItem(id);
return (bool) item;
return leaf->hasItem(id);
}
bool SHAMap::delItem(const uint256& id)