remove unused 'assert_existence' function
This commit is contained in:
parent
ecb51029d7
commit
4c1976db28
2 changed files with 2 additions and 11 deletions
|
@ -360,17 +360,13 @@ protected:
|
|||
r.first->second = c;
|
||||
}
|
||||
}
|
||||
virtual void assert_existence(const std::string& cmd) {
|
||||
assert(command_map_.count(cmd));
|
||||
}
|
||||
|
||||
virtual void register_alias(const std::string& to_cmd,
|
||||
const std::string& cmd)
|
||||
{
|
||||
// disable the assert to allow alias to "command + args"
|
||||
// the fonction assert_existence seems unused now
|
||||
//assert_existence(to_cmd);
|
||||
command_alias_map_[cmd] = to_cmd;
|
||||
}
|
||||
|
||||
//get all aliases of a command.
|
||||
static const std::vector<std::string> get_aliases(const std::string& cmd)
|
||||
{
|
||||
|
|
|
@ -1041,11 +1041,6 @@ protected:
|
|||
chmap::register_command(cmd, h, help, usage, flags + "N"); // add chat commands as network_only
|
||||
}
|
||||
|
||||
virtual void assert_existence(const std::string& cmd)
|
||||
{
|
||||
chmap::assert_existence(cmd);
|
||||
}
|
||||
|
||||
virtual void register_alias(const std::string& to_cmd, const std::string& cmd)
|
||||
{
|
||||
chmap::register_alias(to_cmd, cmd);
|
||||
|
|
Loading…
Add table
Reference in a new issue