[mutter] default: Remove unused internal state tracking
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] default: Remove unused internal state tracking
- Date: Mon, 28 Apr 2014 19:21:05 +0000 (UTC)
commit e2bd15541bdad6cf2f560dc22e6f1a30e2389c97
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Apr 28 15:16:42 2014 -0400
default: Remove unused internal state tracking
src/compositor/plugins/default.c | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/src/compositor/plugins/default.c b/src/compositor/plugins/default.c
index 1c1820f..8d07aa1 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]