mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-26 18:01:08 +02:00
rpc: Remove unused PreCommand signal
This commit is contained in:
@@ -36,7 +36,6 @@ static struct CRPCSignals
|
|||||||
{
|
{
|
||||||
boost::signals2::signal<void ()> Started;
|
boost::signals2::signal<void ()> Started;
|
||||||
boost::signals2::signal<void ()> Stopped;
|
boost::signals2::signal<void ()> Stopped;
|
||||||
boost::signals2::signal<void (const CRPCCommand&)> PreCommand;
|
|
||||||
} g_rpcSignals;
|
} g_rpcSignals;
|
||||||
|
|
||||||
void RPCServer::OnStarted(std::function<void ()> slot)
|
void RPCServer::OnStarted(std::function<void ()> slot)
|
||||||
@@ -484,8 +483,6 @@ UniValue CRPCTable::execute(const JSONRPCRequest &request) const
|
|||||||
if (!pcmd)
|
if (!pcmd)
|
||||||
throw JSONRPCError(RPC_METHOD_NOT_FOUND, "Method not found");
|
throw JSONRPCError(RPC_METHOD_NOT_FOUND, "Method not found");
|
||||||
|
|
||||||
g_rpcSignals.PreCommand(*pcmd);
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Execute, convert arguments to array if necessary
|
// Execute, convert arguments to array if necessary
|
||||||
|
Reference in New Issue
Block a user