From 587b912c10dffae0c55bfa23055f8c7fb1d1961c Mon Sep 17 00:00:00 2001 From: cos Date: Sun, 19 May 2013 15:37:44 +0200 Subject: Remove redundant check for NULL. Since add_command() for cmd_gnumber is forcing one (or two) numerical argument, command() will never allow calling the cmd_gnumber() with arg[0] set to NULL. --- src/actions.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/actions.c') diff --git a/src/actions.c b/src/actions.c index fbc0c9d..d775bff 100644 --- a/src/actions.c +++ b/src/actions.c @@ -5087,14 +5087,6 @@ cmd_gnumber (int interactive UNUSED, struct cmdarg **args) struct numset *g_numset = group_get_numset(); -/* FIXME Implement this. */ -// if (args[0] == NULL) -// { -// /* XXX: Fix this. */ -// print_window_information (rp_current_group, current_window()); -// return cmdret_new (RET_SUCCESS, NULL); -// } - /* Gather the args. */ new_number = ARG(0,number); if (args[1]) -- cgit v1.2.3