Remove dead code in cmd_workspace_number

If a ws doesn't exist, maybe_back_and_forth
will never return true for it.
next
Sebastian Ullrich 2012-08-22 17:49:23 +02:00 committed by Michael Stapelberg
parent 82b73c20c9
commit d29b62f24f
1 changed files with 0 additions and 2 deletions

View File

@ -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;