Skip to content

Commit 6805c41

Browse files
committed
Merge #9575: Remove unused, non-working RPC PostCommand signal
54fae05 Remove unreachable code (g_rpcSignals.PostCommand) (practicalswift) Tree-SHA512: b416d63ffa1c35fa0434b6bc0a930ae1b04919a12114ef65154ce4621aa43d744eb4fc515f48eac2e96c0f528cedb4cdbe2349952d215c2c74e900a63e155e0a
2 parents 8152d3f + 54fae05 commit 6805c41

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/rpc/server.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ static struct CRPCSignals
4040
boost::signals2::signal<void ()> Started;
4141
boost::signals2::signal<void ()> Stopped;
4242
boost::signals2::signal<void (const CRPCCommand&)> PreCommand;
43-
boost::signals2::signal<void (const CRPCCommand&)> PostCommand;
4443
} g_rpcSignals;
4544

4645
void RPCServer::OnStarted(boost::function<void ()> slot)
@@ -58,11 +57,6 @@ void RPCServer::OnPreCommand(boost::function<void (const CRPCCommand&)> slot)
5857
g_rpcSignals.PreCommand.connect(boost::bind(slot, _1));
5958
}
6059

61-
void RPCServer::OnPostCommand(boost::function<void (const CRPCCommand&)> slot)
62-
{
63-
g_rpcSignals.PostCommand.connect(boost::bind(slot, _1));
64-
}
65-
6660
void RPCTypeCheck(const UniValue& params,
6761
const std::list<UniValue::VType>& typesExpected,
6862
bool fAllowNull)
@@ -491,8 +485,6 @@ UniValue CRPCTable::execute(const JSONRPCRequest &request) const
491485
{
492486
throw JSONRPCError(RPC_MISC_ERROR, e.what());
493487
}
494-
495-
g_rpcSignals.PostCommand(*pcmd);
496488
}
497489

498490
std::vector<std::string> CRPCTable::listCommands() const

0 commit comments

Comments
 (0)