From 0bd37ab4ca56a587d4768735e63095c395341c26 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(-) diff --git a/src/actions.c b/src/actions.c index 692edf6..72d1507 100644 --- a/src/actions.c +++ b/src/actions.c @@ -5100,14 +5100,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