mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
Remove unreachable code (g_rpcSignals.PostCommand)
This commit is contained in:
parent
b0b57a1730
commit
54fae05dad
1 changed files with 0 additions and 8 deletions
|
@ -45,7 +45,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)
|
||||||
|
@ -63,11 +62,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 list<UniValue::VType>& typesExpected,
|
const list<UniValue::VType>& typesExpected,
|
||||||
bool fAllowNull)
|
bool fAllowNull)
|
||||||
|
@ -492,8 +486,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…
Add table
Reference in a new issue