]> git.sur5r.net Git - i3/i3/commitdiff
Remove dead code in cmd_workspace_number
authorSebastian Ullrich <sebasti@nullrich.de>
Wed, 22 Aug 2012 15:49:23 +0000 (17:49 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 22 Aug 2012 15:58:08 +0000 (17:58 +0200)
If a ws doesn't exist, maybe_back_and_forth
will never return true for it.

src/commands.c

index 85d8cdf4c211f5218c7a383c69b622f5e1c6abff..00d8b97d5ef550b2e1ebe4db2e669a7fa036b1e8 100644 (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;