From d29b62f24f3e94a5ca205fd03ca9d17546d385e4 Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Wed, 22 Aug 2012 17:49:23 +0200 Subject: [PATCH] Remove dead code in cmd_workspace_number If a ws doesn't exist, maybe_back_and_forth will never return true for it. --- src/commands.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/commands.c b/src/commands.c index 85d8cdf4..00d8b97d 100644 --- a/src/commands.c +++ b/src/commands.c @@ -840,8 +840,6 @@ void cmd_workspace_number(I3_CMD, char *which) { ysuccess(true); /* terminate the which string after the endposition of the number */ *endptr = '\0'; - if (maybe_back_and_forth(cmd_output, which)) - return; workspace_show_by_name(which); cmd_output->needs_tree_render = true; return; -- 2.39.5