Remove unused SHAMap::fetch

This commit is contained in:
Howard Hinnant
2015-12-09 16:02:58 -05:00
committed by Nik Bougalis
parent bbe7457049
commit 05ac32064f
2 changed files with 0 additions and 20 deletions

View File

@@ -150,16 +150,6 @@ public:
bool addGiveItem (std::shared_ptr<SHAMapItem const> const&,
bool isTransaction, bool hasMeta);
/** Fetch an item given its key.
This retrieves the item whose key matches.
If the item does not exist, an empty pointer is returned.
Exceptions:
Can throw SHAMapMissingNode
@note This can cause NodeStore reads
*/
std::shared_ptr<SHAMapItem const> const&
fetch (uint256 const& key) const;
// Save a copy if you need to extend the life
// of the SHAMapItem beyond this SHAMap
std::shared_ptr<SHAMapItem const> const& peekItem (uint256 const& id) const;

View File

@@ -485,16 +485,6 @@ SHAMap::onlyBelow (SHAMapAbstractNode* node) const
static std::shared_ptr<
SHAMapItem const> const nullConstSHAMapItem;
std::shared_ptr<SHAMapItem const> const&
SHAMap::fetch (uint256 const& key) const
{
SHAMapTreeNode const* const leaf =
walkToPointer(key);
if (! leaf)
return nullConstSHAMapItem;
return leaf->peekItem();
}
SHAMapItem const*
SHAMap::peekFirstItem(NodeStack& stack) const
{