summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2013-10-10 12:00:18 +0000
committernicm <nicm@openbsd.org>2013-10-10 12:00:18 +0000
commit1fe07f53781f00c276628c358e88053fad77e915 (patch)
treeb810e4d7bda1c5f43d3aadab3b26651804dcb3d6 /usr.bin/tmux/cmd.c
parentClear window->flags when clearing winlinks (diff)
downloadwireguard-openbsd-1fe07f53781f00c276628c358e88053fad77e915.tar.xz
wireguard-openbsd-1fe07f53781f00c276628c358e88053fad77e915.zip
Remove the barely-used and unnecessary command check() function.
Diffstat (limited to 'usr.bin/tmux/cmd.c')
-rw-r--r--usr.bin/tmux/cmd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd.c b/usr.bin/tmux/cmd.c
index 000e2ee7210..1d6783bdc0f 100644
--- a/usr.bin/tmux/cmd.c
+++ b/usr.bin/tmux/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.85 2013/05/15 15:34:09 nicm Exp $ */
+/* $OpenBSD: cmd.c,v 1.86 2013/10/10 12:00:24 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -255,8 +255,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;