]> git.sur5r.net Git - i3/i3/commitdiff
Remove superfluous definitions (Thanks Merovius)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 5 Mar 2010 00:59:52 +0000 (01:59 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 5 Mar 2010 00:59:52 +0000 (01:59 +0100)
src/workspace.c

index a579bf1d16790a7995a5c3fa0ecee3ad34ca2b37..70b034ab068725e8ec35093792d6689513f0843e 100644 (file)
@@ -291,7 +291,6 @@ Workspace *get_first_workspace_for_screen(Output *output) {
 
         if (result == NULL) {
                 /* No assignment found, returning first unused workspace */
-                Workspace *ws;
                 TAILQ_FOREACH(ws, workspaces, workspaces) {
                         if (ws->output != NULL)
                                 continue;
@@ -304,7 +303,6 @@ Workspace *get_first_workspace_for_screen(Output *output) {
         if (result == NULL) {
                 DLOG("No existing free workspace found to assign, creating a new one\n");
 
-                Workspace *ws;
                 int last_ws = 0;
                 TAILQ_FOREACH(ws, workspaces, workspaces)
                         last_ws = ws->num;