Skip to content

Commit 4e355d5

Browse files
jamescowenswilkart
authored andcommitted
Merge pull request gridcoin-community#2768 from lrusak/fix-std-remove
rpc/server: fix removing deprecated commands from command list
2 parents e1bebdd + 3bb95c2 commit 4e355d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ std::vector<std::string> CRPCTable::listCommands() const
932932
boost::bind(&commandMap::value_type::first,boost::placeholders::_1) );
933933
// remove deprecated commands from autocomplete
934934
for(auto &command: DEPRECATED_RPCS) {
935-
std::remove(commandList.begin(), commandList.end(), command);
935+
commandList.erase(std::remove(commandList.begin(), commandList.end(), command), commandList.end());
936936
}
937937
return commandList;
938938
}

0 commit comments

Comments
 (0)