Skip to content

Commit

Permalink
Merge pull request #2768 from lrusak/fix-std-remove
Browse files Browse the repository at this point in the history
rpc/server: fix removing deprecated commands from command list
  • Loading branch information
jamescowens authored Jun 16, 2024
2 parents a3dafe6 + 3bb95c2 commit 5644af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ std::vector<std::string> CRPCTable::listCommands() const
boost::bind(&commandMap::value_type::first,boost::placeholders::_1) );
// remove deprecated commands from autocomplete
for(auto &command: DEPRECATED_RPCS) {
std::remove(commandList.begin(), commandList.end(), command);
commandList.erase(std::remove(commandList.begin(), commandList.end(), command), commandList.end());
}
return commandList;
}
Expand Down

0 comments on commit 5644af6

Please sign in to comment.