summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2013-11-19 19:50:58 +0100
committerFlorian Müllner <fmuellner@gnome.org>2013-11-19 20:08:46 +0100
commit333661a9d8851ce31d54f4aadb7cefcbc0a2f05e (patch)
tree8f1b9bcf342364006b65ad3d422fb90e975f5067
parentb9da43b753d13d7f82b762f42109c34354eef334 (diff)
downloadmutter-333661a9d8851ce31d54f4aadb7cefcbc0a2f05e.tar.gz
stack: Drop unused code
Since commit 2b2b2d319191f5 the code is unused and triggers a compiler error with -Werror=unused-but-set-variable.
-rw-r--r--src/core/stack.c9
1 files changed, 0 insertions, 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");