From 333661a9d8851ce31d54f4aadb7cefcbc0a2f05e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 19 Nov 2013 19:50:58 +0100 Subject: [PATCH] stack: Drop unused code Since commit 2b2b2d319191f5 the code is unused and triggers a compiler error with -Werror=unused-but-set-variable. --- src/core/stack.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/core/stack.c b/src/core/stack.c index 0e89e1918..ed1d6d8d4 100644 --- a/src/core/stack.c +++ b/src/core/stack.c @@ -1327,15 +1327,6 @@ stack_sync_to_xserver (MetaStack *stack) /* build XRestackWindows() array from top to bottom */ if (w->client_type == META_WINDOW_CLIENT_TYPE_X11) g_array_append_val (x11_root_children_stacked, top_level_window); - else - { - MetaStackWindow *new; - - /* So we can determine later if a cached stack window is - * stale because the corresponding window has been freed we - * associate a weak pointer with the new window. */ - new = &g_array_index (all_root_children_stacked, MetaStackWindow, all_root_children_stacked->len - 1); - } } meta_topic (META_DEBUG_STACK, "\n");