From a36da3a878a76f9570bee1b180a07243df4d382c Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 21 Aug 2013 18:01:40 +0100 Subject: Remove the barely-used and unnecessary command check() function. --- cmd.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'cmd.c') diff --git a/cmd.c b/cmd.c index 282fb112..c9eb41a1 100644 --- a/cmd.c +++ b/cmd.c @@ -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; -- cgit