Remove the barely-used and unnecessary command check() function.

This commit is contained in:
Nicholas Marriott
2013-08-21 18:01:40 +01:00
parent 23519fc0b4
commit a36da3a878
72 changed files with 28 additions and 124 deletions

2
cmd.c
View File

@ -254,8 +254,6 @@ cmd_parse(int argc, char **argv, const char *file, u_int line, char **cause)
goto usage;
if (entry->args_upper != -1 && args->argc > entry->args_upper)
goto usage;
if (entry->check != NULL && entry->check(args) != 0)
goto usage;
cmd = xcalloc(1, sizeof *cmd);
cmd->entry = entry;