From 7e530940447874f6a62a4f858d3a164aa2c5383e Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 13 Jan 2011 16:06:47 -0500 Subject: [PATCH] default plugin: Clean up unused n_workspaces variable. n_workspaces is unused, which may cause compilation errors under certain environments. https://bugzilla.gnome.org/show_bug.cgi?id=639458 --- src/compositor/plugins/default.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/compositor/plugins/default.c b/src/compositor/plugins/default.c index 6d6297c61..89e2648f2 100644 --- a/src/compositor/plugins/default.c +++ b/src/compositor/plugins/default.c @@ -319,12 +319,10 @@ switch_workspace (MetaPlugin *plugin, { MetaDefaultPluginPrivate *priv = META_DEFAULT_PLUGIN (plugin)->priv; GList *l; - gint n_workspaces; ClutterActor *workspace0 = clutter_group_new (); ClutterActor *workspace1 = clutter_group_new (); ClutterActor *stage; int screen_width, screen_height; - MetaScreen *screen = meta_plugin_get_screen (plugin); ClutterAnimation *animation; stage = meta_plugin_get_stage (plugin); @@ -350,8 +348,6 @@ switch_workspace (MetaPlugin *plugin, return; } - n_workspaces = meta_screen_get_n_workspaces (screen); - l = g_list_last (meta_plugin_get_window_actors (plugin)); while (l)