From e2bd15541bdad6cf2f560dc22e6f1a30e2389c97 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 28 Apr 2014 15:16:42 -0400 Subject: [PATCH] default: Remove unused internal state tracking --- src/compositor/plugins/default.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/compositor/plugins/default.c b/src/compositor/plugins/default.c index 1c1820fd5..8d07aa127 100644 --- a/src/compositor/plugins/default.c +++ b/src/compositor/plugins/default.c @@ -138,9 +138,6 @@ typedef struct _ActorPrivate ClutterTimeline *tml_maximize; ClutterTimeline *tml_destroy; ClutterTimeline *tml_map; - - gboolean is_minimized : 1; - gboolean is_maximized : 1; } ActorPrivate; /* callback data for when animations complete */ @@ -522,8 +519,6 @@ minimize (MetaPlugin *plugin, MetaWindowActor *window_actor) EffectCompleteData *data = g_new0 (EffectCompleteData, 1); ActorPrivate *apriv = get_actor_private (window_actor); - apriv->is_minimized = TRUE; - animation = clutter_actor_animate (actor, CLUTTER_EASE_IN_SINE, MINIMIZE_TIMEOUT, @@ -599,8 +594,6 @@ maximize (MetaPlugin *plugin, gfloat width, height; gfloat x, y; - apriv->is_maximized = TRUE; - clutter_actor_get_size (actor, &width, &height); clutter_actor_get_position (actor, &x, &y); @@ -642,13 +635,6 @@ unmaximize (MetaPlugin *plugin, MetaWindow *meta_window = meta_window_actor_get_meta_window (window_actor); MetaWindowType type = meta_window_get_window_type (meta_window); - if (type == META_WINDOW_NORMAL) - { - ActorPrivate *apriv = get_actor_private (window_actor); - - apriv->is_maximized = FALSE; - } - /* Do this conditionally, if the effect requires completion callback. */ meta_plugin_unmaximize_completed (plugin, window_actor); } @@ -708,9 +694,6 @@ map (MetaPlugin *plugin, MetaWindowActor *window_actor) g_signal_connect (apriv->tml_map, "completed", G_CALLBACK (on_map_effect_complete), data); - - apriv->is_minimized = FALSE; - } else meta_plugin_map_completed (plugin, window_actor);