From: Michael Stapelberg Date: Wed, 9 May 2012 17:56:21 +0000 (+0200) Subject: Remove set but never read variable X-Git-Tag: 4.3~230^2^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a9b57a44a9d328d5153158445bc6a5c7b78420b0;p=i3%2Fi3 Remove set but never read variable This was due to the changes in commit d25e77ce7597bf0736c610a04185c8c27694c890 --- 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); } /*