Remove obsolete NodeObject fields:

Legacy fields of NodeObject are removed, as they are no longer
used and there is a space savings from omitting them:

* Remove LedgerIndex
This commit is contained in:
Vinnie Falco
2015-02-08 15:11:57 -08:00
parent e2a5535ed6
commit f946d7b447
19 changed files with 53 additions and 104 deletions

View File

@@ -27,13 +27,11 @@ namespace ripple {
NodeObject::NodeObject (
NodeObjectType type,
LedgerIndex ledgerIndex,
Blob&& data,
uint256 const& hash,
PrivateAccess)
: mType (type)
, mHash (hash)
, mLedgerIndex (ledgerIndex)
{
mData = std::move (data);
}
@@ -41,12 +39,11 @@ NodeObject::NodeObject (
NodeObject::Ptr
NodeObject::createObject (
NodeObjectType type,
LedgerIndex ledgerIndex,
Blob&& data,
uint256 const& hash)
{
return std::make_shared <NodeObject> (
type, ledgerIndex, std::move (data), hash, PrivateAccess ());
type, std::move (data), hash, PrivateAccess ());
}
NodeObjectType
@@ -61,12 +58,6 @@ NodeObject::getHash () const
return mHash;
}
LedgerIndex
NodeObject::getLedgerIndex () const
{
return mLedgerIndex;
}
Blob const&
NodeObject::getData () const
{
@@ -82,9 +73,6 @@ NodeObject::isCloneOf (NodeObject::Ptr const& other) const
if (mHash != other->mHash)
return false;
if (mLedgerIndex != other->mLedgerIndex)
return false;
if (mData != other->mData)
return false;