mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove unused functions & cleanup code:
* Remove superseded ECDSA key functions * Remove unused string helper functions * Remove beast::FatalError * Cleanup SSL context generation * Improve parsing of RPC commands during startup
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
#include <ripple/protocol/SystemParameters.h> // VFALCO Breaks levelization
|
||||
#include <ripple/protocol/PublicKey.h> // NIKB Breaks levelization (TEMP)
|
||||
#include <ripple/protocol/SecretKey.h> // NIKB Breaks levelization (TEMP)
|
||||
#include <ripple/json/json_value.h>
|
||||
#include <ripple/beast/net/IPEndpoint.h>
|
||||
#include <beast/core/detail/ci_char_traits.hpp>
|
||||
#include <ripple/beast/utility/Journal.h>
|
||||
@@ -148,9 +147,6 @@ public:
|
||||
|
||||
std::chrono::seconds WEBSOCKET_PING_FREQ = 5min;
|
||||
|
||||
// RPC parameters
|
||||
Json::Value RPC_STARTUP;
|
||||
|
||||
// Path searching
|
||||
int PATH_SEARCH_OLD = 7;
|
||||
int PATH_SEARCH = 7;
|
||||
|
||||
@@ -302,25 +302,6 @@ void Config::loadFromString (std::string const& fileContents)
|
||||
if (auto s = getIniFileSection (secConfig, SECTION_SNTP))
|
||||
SNTP_SERVERS = *s;
|
||||
|
||||
if (auto s = getIniFileSection (secConfig, SECTION_RPC_STARTUP))
|
||||
{
|
||||
RPC_STARTUP = Json::arrayValue;
|
||||
|
||||
for (auto const& strJson : *s)
|
||||
{
|
||||
Json::Reader jrReader;
|
||||
Json::Value jvCommand;
|
||||
|
||||
if (! jrReader.parse (strJson, jvCommand))
|
||||
Throw<std::runtime_error> (
|
||||
boost::str (boost::format (
|
||||
"Couldn't parse [" SECTION_RPC_STARTUP "] command: %s")
|
||||
% strJson));
|
||||
|
||||
RPC_STARTUP.append (jvCommand);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
std::string dbPath;
|
||||
if (getSingleSection (secConfig, "database_path", dbPath, j_))
|
||||
|
||||
Reference in New Issue
Block a user