aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2017-03-09 09:55:22 +0100
committerWladimir J. van der Laan <[email protected]>2017-03-09 10:01:03 +0100
commit6805c4112cfd8f37e6ff07d1d4802c2728122dd3 (patch)
treef6e8d4ef82bf2f430b24e8f9b49206a4c79d787f /src
parentMerge #9476: [refactor] Remove using namespace <xxx> from rpc/ & script/ sources (diff)
parentRemove unreachable code (g_rpcSignals.PostCommand) (diff)
downloaddiscoin-6805c4112cfd8f37e6ff07d1d4802c2728122dd3.tar.xz
discoin-6805c4112cfd8f37e6ff07d1d4802c2728122dd3.zip
Merge #9575: Remove unused, non-working RPC PostCommand signal
54fae05 Remove unreachable code (g_rpcSignals.PostCommand) (practicalswift) Tree-SHA512: b416d63ffa1c35fa0434b6bc0a930ae1b04919a12114ef65154ce4621aa43d744eb4fc515f48eac2e96c0f528cedb4cdbe2349952d215c2c74e900a63e155e0a
Diffstat (limited to 'src')
-rw-r--r--src/rpc/server.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp
index f689b4a28..9b0699afc 100644
--- a/src/rpc/server.cpp
+++ b/src/rpc/server.cpp
@@ -40,7 +40,6 @@ static struct CRPCSignals
boost::signals2::signal<void ()> Started;
boost::signals2::signal<void ()> Stopped;
boost::signals2::signal<void (const CRPCCommand&)> PreCommand;
- boost::signals2::signal<void (const CRPCCommand&)> PostCommand;
} g_rpcSignals;
void RPCServer::OnStarted(boost::function<void ()> slot)
@@ -58,11 +57,6 @@ void RPCServer::OnPreCommand(boost::function<void (const CRPCCommand&)> slot)
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,
const std::list<UniValue::VType>& typesExpected,
bool fAllowNull)
@@ -491,8 +485,6 @@ UniValue CRPCTable::execute(const JSONRPCRequest &request) const
{
throw JSONRPCError(RPC_MISC_ERROR, e.what());
}
-
- g_rpcSignals.PostCommand(*pcmd);
}
std::vector<std::string> CRPCTable::listCommands() const