From 6e3f07ddce4424306700d21c022a73c7eee00cfd Mon Sep 17 00:00:00 2001 From: Edward Hennis Date: Thu, 26 Feb 2015 22:13:29 -0500 Subject: [PATCH] Remove unused / redundant functions. --- src/ripple/app/misc/NetworkOPs.cpp | 9 --------- src/ripple/app/misc/NetworkOPs.h | 2 -- src/ripple/rpc/handlers/LedgerEntry.cpp | 2 +- src/ripple/rpc/impl/TransactionSign.cpp | 2 +- 4 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/ripple/app/misc/NetworkOPs.cpp b/src/ripple/app/misc/NetworkOPs.cpp index f9d5a516b6..db73460d77 100644 --- a/src/ripple/app/misc/NetworkOPs.cpp +++ b/src/ripple/app/misc/NetworkOPs.cpp @@ -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 // diff --git a/src/ripple/app/misc/NetworkOPs.h b/src/ripple/app/misc/NetworkOPs.h index 06c1d5aa8e..8f87dcc2f6 100644 --- a/src/ripple/app/misc/NetworkOPs.h +++ b/src/ripple/app/misc/NetworkOPs.h @@ -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; //-------------------------------------------------------------------------- // diff --git a/src/ripple/rpc/handlers/LedgerEntry.cpp b/src/ripple/rpc/handlers/LedgerEntry.cpp index 45fae06c91..23a3641c05 100644 --- a/src/ripple/rpc/handlers/LedgerEntry.cpp +++ b/src/ripple/rpc/handlers/LedgerEntry.cpp @@ -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(); diff --git a/src/ripple/rpc/impl/TransactionSign.cpp b/src/ripple/rpc/impl/TransactionSign.cpp index ae170f2585..6f1285a0f5 100644 --- a/src/ripple/rpc/impl/TransactionSign.cpp +++ b/src/ripple/rpc/impl/TransactionSign.cpp @@ -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 (sleAccountRoot); }