diff --git a/src/cpp/ripple/RPCHandler.cpp b/src/cpp/ripple/RPCHandler.cpp index 215d239ce0..ee8a4f468c 100644 --- a/src/cpp/ripple/RPCHandler.cpp +++ b/src/cpp/ripple/RPCHandler.cpp @@ -558,18 +558,6 @@ Json::Value RPCHandler::accountFromString(Ledger::ref lrLedger, RippleAddress& n return Json::Value(Json::objectValue); } -Json::Value RPCHandler::doAcceptLedger(Json::Value jvRequest) -{ - if (!theConfig.RUN_STANDALONE) - return rpcError(rpcNOT_STANDALONE); - - Json::Value jvResult(Json::objectValue); - - jvResult["newLedger"] = theApp->getOPs().acceptLedger(); - - return jvResult; -} - // { // ident : , // account_index : // optional @@ -2807,7 +2795,6 @@ Json::Value RPCHandler::doCommand(const Json::Value& jvRequest, int iRole) unsigned int iOptions; } commandsA[] = { // Request-response methods - { "accept_ledger", &RPCHandler::doAcceptLedger, true, optCurrent }, { "account_info", &RPCHandler::doAccountInfo, false, optCurrent }, { "account_lines", &RPCHandler::doAccountLines, false, optCurrent }, { "account_offers", &RPCHandler::doAccountOffers, false, optCurrent }, diff --git a/src/cpp/ripple/RPCHandler.h b/src/cpp/ripple/RPCHandler.h index 47e30c2085..ac49c05f10 100644 --- a/src/cpp/ripple/RPCHandler.h +++ b/src/cpp/ripple/RPCHandler.h @@ -43,8 +43,6 @@ class RPCHandler Json::Value accountFromString(Ledger::ref lrLedger, RippleAddress& naAccount, bool& bIndex, const std::string& strIdent, const int iIndex, const bool bStrict); - Json::Value doAcceptLedger(Json::Value jvRequest); - Json::Value doAccountInfo(Json::Value params); Json::Value doAccountLines(Json::Value params); Json::Value doAccountOffers(Json::Value params);