mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-08 03:33:32 +01:00
rpc: Remove unused return type from appendCommand
This commit is contained in:
@@ -261,13 +261,11 @@ CRPCTable::CRPCTable()
|
||||
}
|
||||
}
|
||||
|
||||
bool CRPCTable::appendCommand(const std::string& name, const CRPCCommand* pcmd)
|
||||
void CRPCTable::appendCommand(const std::string& name, const CRPCCommand* pcmd)
|
||||
{
|
||||
if (IsRPCRunning())
|
||||
return false;
|
||||
CHECK_NONFATAL(!IsRPCRunning()); // Only add commands before rpc is running
|
||||
|
||||
mapCommands[name].push_back(pcmd);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CRPCTable::removeCommand(const std::string& name, const CRPCCommand* pcmd)
|
||||
|
||||
Reference in New Issue
Block a user