From 54fae05dad26f3ebc2c666c736e9854583c0298e Mon Sep 17 00:00:00 2001 From: practicalswift Date: Thu, 9 Mar 2017 09:47:04 +0100 Subject: [PATCH] Remove unreachable code (g_rpcSignals.PostCommand) --- src/rpc/server.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index 1b94e1007..6d0e30d42 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -45,7 +45,6 @@ static struct CRPCSignals boost::signals2::signal Started; boost::signals2::signal Stopped; boost::signals2::signal PreCommand; - boost::signals2::signal PostCommand; } g_rpcSignals; void RPCServer::OnStarted(boost::function slot) @@ -63,11 +62,6 @@ void RPCServer::OnPreCommand(boost::function slot) g_rpcSignals.PreCommand.connect(boost::bind(slot, _1)); } -void RPCServer::OnPostCommand(boost::function slot) -{ - g_rpcSignals.PostCommand.connect(boost::bind(slot, _1)); -} - void RPCTypeCheck(const UniValue& params, const list& typesExpected, bool fAllowNull) @@ -492,8 +486,6 @@ UniValue CRPCTable::execute(const JSONRPCRequest &request) const { throw JSONRPCError(RPC_MISC_ERROR, e.what()); } - - g_rpcSignals.PostCommand(*pcmd); } std::vector CRPCTable::listCommands() const