[mutter] default plugin: Remove start method that does nothing
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] default plugin: Remove start method that does nothing
- Date: Sun, 29 Apr 2012 02:37:52 +0000 (UTC)
commit ebf8c460e138360ea427599f48ec2164440b5853
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Apr 26 09:51:34 2012 -0400
default plugin: Remove start method that does nothing
All animations use the constants directly, so this is just declaring
a bunch of local variables and then doing nothing with it.
Another clang warning.
https://bugzilla.gnome.org/show_bug.cgi?id=674876
src/compositor/plugins/default.c | 31 -------------------------------
1 files changed, 0 insertions(+), 31 deletions(-)
---
diff --git a/src/compositor/plugins/default.c b/src/compositor/plugins/default.c
index 368135e..71839c2 100644
--- a/src/compositor/plugins/default.c
+++ b/src/compositor/plugins/default.c
@@ -112,8 +112,6 @@ struct _MetaDefaultPluginPrivate
ClutterActor *desktop2;
MetaPluginInfo info;
-
- gboolean debug_mode : 1;
};
/*
@@ -183,34 +181,6 @@ meta_default_plugin_get_property (GObject *object,
}
static void
-start (MetaPlugin *plugin)
-{
- MetaDefaultPluginPrivate *priv = META_DEFAULT_PLUGIN (plugin)->priv;
-
- guint destroy_timeout = DESTROY_TIMEOUT;
- guint minimize_timeout = MINIMIZE_TIMEOUT;
- guint maximize_timeout = MAXIMIZE_TIMEOUT;
- guint map_timeout = MAP_TIMEOUT;
- guint switch_timeout = SWITCH_TIMEOUT;
-
- if (meta_plugin_debug_mode (plugin))
- {
- g_debug ("Plugin %s: Entering debug mode.", priv->info.name);
-
- priv->debug_mode = TRUE;
-
- /*
- * Double the effect duration to make them easier to observe.
- */
- destroy_timeout *= 2;
- minimize_timeout *= 2;
- maximize_timeout *= 2;
- map_timeout *= 2;
- switch_timeout *= 2;
- }
-}
-
-static void
meta_default_plugin_class_init (MetaDefaultPluginClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
@@ -221,7 +191,6 @@ meta_default_plugin_class_init (MetaDefaultPluginClass *klass)
gobject_class->set_property = meta_default_plugin_set_property;
gobject_class->get_property = meta_default_plugin_get_property;
- plugin_class->start = start;
plugin_class->map = map;
plugin_class->minimize = minimize;
plugin_class->maximize = maximize;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]