From: Sebastian Ullrich Date: Wed, 22 Aug 2012 15:49:23 +0000 (+0200) Subject: Remove dead code in cmd_workspace_number X-Git-Tag: 4.3~61 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d29b62f24f3e94a5ca205fd03ca9d17546d385e4;p=i3%2Fi3 Remove dead code in cmd_workspace_number If a ws doesn't exist, maybe_back_and_forth will never return true for it. --- 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;