Remove unused / redundant functions.

This commit is contained in:
Edward Hennis
2015-02-26 22:13:29 -05:00
committed by Nik Bougalis
parent 11d28c4856
commit 6e3f07ddce
4 changed files with 2 additions and 13 deletions

View File

@@ -197,15 +197,6 @@ public:
mLastValidation = v;
}
SLE::pointer getSLE (Ledger::pointer lpLedger, uint256 const& uHash)
{
return lpLedger->getSLE (uHash);
}
SLE::pointer getSLEi (Ledger::pointer lpLedger, uint256 const& uHash)
{
return lpLedger->getSLEi (uHash);
}
//
// Transaction operations
//

View File

@@ -137,8 +137,6 @@ public:
virtual STValidation::ref getLastValidation () = 0;
virtual void setLastValidation (STValidation::ref v) = 0;
virtual SLE::pointer getSLE (Ledger::pointer lpLedger, uint256 const& uHash) = 0;
virtual SLE::pointer getSLEi (Ledger::pointer lpLedger, uint256 const& uHash) = 0;
//--------------------------------------------------------------------------
//

View File

@@ -207,7 +207,7 @@ Json::Value doLedgerEntry (RPC::Context& context)
if (uNodeIndex.isNonZero ())
{
auto sleNode = context.netOps.getSLEi (lpLedger, uNodeIndex);
auto sleNode = lpLedger->getSLEi(uNodeIndex);
if (context.params.isMember(jss::binary))
bNodeBinary = context.params[jss::binary].asBool();

View File

@@ -123,7 +123,7 @@ bool LedgerFacade::hasAccountRoot () const
return true;
SLE::pointer const sleAccountRoot =
netOPs_->getSLEi (ledger_, getAccountRootIndex (accountID_));
ledger_->getSLEi(getAccountRootIndex(accountID_));
return static_cast <bool> (sleAccountRoot);
}