mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user