[mutter/wayland] stack: Drop unused code



commit 333661a9d8851ce31d54f4aadb7cefcbc0a2f05e
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Nov 19 19:50:58 2013 +0100

    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 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/src/core/stack.c b/src/core/stack.c
index 0e89e19..ed1d6d8 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");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]