default: Remove unused internal state tracking

This commit is contained in:
Jasper St. Pierre 2014-04-28 15:16:42 -04:00
parent 9607513e62
commit e2bd15541b

View File

@ -138,9 +138,6 @@ typedef struct _ActorPrivate
ClutterTimeline *tml_maximize; ClutterTimeline *tml_maximize;
ClutterTimeline *tml_destroy; ClutterTimeline *tml_destroy;
ClutterTimeline *tml_map; ClutterTimeline *tml_map;
gboolean is_minimized : 1;
gboolean is_maximized : 1;
} ActorPrivate; } ActorPrivate;
/* callback data for when animations complete */ /* callback data for when animations complete */
@ -522,8 +519,6 @@ minimize (MetaPlugin *plugin, MetaWindowActor *window_actor)
EffectCompleteData *data = g_new0 (EffectCompleteData, 1); EffectCompleteData *data = g_new0 (EffectCompleteData, 1);
ActorPrivate *apriv = get_actor_private (window_actor); ActorPrivate *apriv = get_actor_private (window_actor);
apriv->is_minimized = TRUE;
animation = clutter_actor_animate (actor, animation = clutter_actor_animate (actor,
CLUTTER_EASE_IN_SINE, CLUTTER_EASE_IN_SINE,
MINIMIZE_TIMEOUT, MINIMIZE_TIMEOUT,
@ -599,8 +594,6 @@ maximize (MetaPlugin *plugin,
gfloat width, height; gfloat width, height;
gfloat x, y; gfloat x, y;
apriv->is_maximized = TRUE;
clutter_actor_get_size (actor, &width, &height); clutter_actor_get_size (actor, &width, &height);
clutter_actor_get_position (actor, &x, &y); 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); MetaWindow *meta_window = meta_window_actor_get_meta_window (window_actor);
MetaWindowType type = meta_window_get_window_type (meta_window); 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. */ /* Do this conditionally, if the effect requires completion callback. */
meta_plugin_unmaximize_completed (plugin, window_actor); 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_signal_connect (apriv->tml_map, "completed",
G_CALLBACK (on_map_effect_complete), G_CALLBACK (on_map_effect_complete),
data); data);
apriv->is_minimized = FALSE;
} }
else else
meta_plugin_map_completed (plugin, window_actor); meta_plugin_map_completed (plugin, window_actor);