mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
rpc: Remove unused return type from appendCommand
This commit is contained in:
parent
4d4bd5ed74
commit
fa93bc14c7
2 changed files with 4 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue