From a9b57a44a9d328d5153158445bc6a5c7b78420b0 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 9 May 2012 19:56:21 +0200 Subject: [PATCH] Remove set but never read variable This was due to the changes in commit d25e77ce7597bf0736c610a04185c8c27694c890 --- src/workspace.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/workspace.c b/src/workspace.c index 44f32c2d..2ff11237 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -303,7 +303,7 @@ static void workspace_reassign_sticky(Con *con) { } -static void _workspace_show(Con *workspace, bool changed_num_workspaces) { +static void _workspace_show(Con *workspace) { Con *current, *old = NULL; /* safe-guard against showing i3-internal workspaces like __i3_scratch */ @@ -347,7 +347,6 @@ static void _workspace_show(Con *workspace, bool changed_num_workspaces) { LOG("Closing old workspace (%p / %s), it is empty\n", old, old->name); tree_close(old, DONT_KILL_WINDOW, false, false); ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"empty\"}"); - changed_num_workspaces = true; } } @@ -375,7 +374,7 @@ static void _workspace_show(Con *workspace, bool changed_num_workspaces) { * */ void workspace_show(Con *workspace) { - _workspace_show(workspace, false); + _workspace_show(workspace); } /* @@ -386,7 +385,7 @@ void workspace_show_by_name(const char *num) { Con *workspace; bool changed_num_workspaces; workspace = workspace_get(num, &changed_num_workspaces); - _workspace_show(workspace, changed_num_workspaces); + _workspace_show(workspace); } /* -- 2.39.5