Merge #9575: Remove unused, non-working RPC PostCommand signal
54fae05 Remove unreachable code (g_rpcSignals.PostCommand) (practicalswift) Tree-SHA512: b416d63ffa1c35fa0434b6bc0a930ae1b04919a12114ef65154ce4621aa43d744eb4fc515f48eac2e96c0f528cedb4cdbe2349952d215c2c74e900a63e155e0a
This commit is contained in:
parent
e53da66b2b
commit
1bfc069e34
@ -44,7 +44,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;
|
boost::signals2::signal<void (const CRPCCommand&)> PreCommand;
|
||||||
boost::signals2::signal<void (const CRPCCommand&)> PostCommand;
|
|
||||||
} g_rpcSignals;
|
} g_rpcSignals;
|
||||||
|
|
||||||
void RPCServer::OnStarted(boost::function<void ()> slot)
|
void RPCServer::OnStarted(boost::function<void ()> slot)
|
||||||
@ -62,11 +61,6 @@ void RPCServer::OnPreCommand(boost::function<void (const CRPCCommand&)> slot)
|
|||||||
g_rpcSignals.PreCommand.connect(boost::bind(slot, _1));
|
g_rpcSignals.PreCommand.connect(boost::bind(slot, _1));
|
||||||
}
|
}
|
||||||
|
|
||||||
void RPCServer::OnPostCommand(boost::function<void (const CRPCCommand&)> slot)
|
|
||||||
{
|
|
||||||
g_rpcSignals.PostCommand.connect(boost::bind(slot, _1));
|
|
||||||
}
|
|
||||||
|
|
||||||
void RPCTypeCheck(const UniValue& params,
|
void RPCTypeCheck(const UniValue& params,
|
||||||
const std::list<UniValue::VType>& typesExpected,
|
const std::list<UniValue::VType>& typesExpected,
|
||||||
bool fAllowNull)
|
bool fAllowNull)
|
||||||
@ -558,8 +552,6 @@ UniValue CRPCTable::execute(const JSONRPCRequest &request) const
|
|||||||
{
|
{
|
||||||
throw JSONRPCError(RPC_MISC_ERROR, e.what());
|
throw JSONRPCError(RPC_MISC_ERROR, e.what());
|
||||||
}
|
}
|
||||||
|
|
||||||
g_rpcSignals.PostCommand(*pcmd);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string> CRPCTable::listCommands() const
|
std::vector<std::string> CRPCTable::listCommands() const
|
||||||
|
Loading…
Reference in New Issue
Block a user