Skip to content

Commit 54fae05

Browse files
Remove unreachable code (g_rpcSignals.PostCommand)
1 parent b0b57a1 commit 54fae05

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
@@ -45,7 +45,6 @@ static struct CRPCSignals
4545
boost::signals2::signal<void ()> Started;
4646
boost::signals2::signal<void ()> Stopped;
4747
boost::signals2::signal<void (const CRPCCommand&)> PreCommand;
48-
boost::signals2::signal<void (const CRPCCommand&)> PostCommand;
4948
} g_rpcSignals;
5049

5150
void RPCServer::OnStarted(boost::function<void ()> slot)
@@ -63,11 +62,6 @@ void RPCServer::OnPreCommand(boost::function<void (const CRPCCommand&)> slot)
6362
g_rpcSignals.PreCommand.connect(boost::bind(slot, _1));
6463
}
6564

66-
void RPCServer::OnPostCommand(boost::function<void (const CRPCCommand&)> slot)
67-
{
68-
g_rpcSignals.PostCommand.connect(boost::bind(slot, _1));
69-
}
70-
7165
void RPCTypeCheck(const UniValue& params,
7266
const list<UniValue::VType>& typesExpected,
7367
bool fAllowNull)
@@ -492,8 +486,6 @@ UniValue CRPCTable::execute(const JSONRPCRequest &request) const
492486
{
493487
throw JSONRPCError(RPC_MISC_ERROR, e.what());
494488
}
495-
496-
g_rpcSignals.PostCommand(*pcmd);
497489
}
498490

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

0 commit comments

Comments
 (0)