From ebf8c460e138360ea427599f48ec2164440b5853 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 26 Apr 2012 09:51:34 -0400 Subject: [PATCH] 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 file changed, 31 deletions(-) diff --git a/src/compositor/plugins/default.c b/src/compositor/plugins/default.c index 368135efc..71839c215 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; }; /* @@ -182,34 +180,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) { @@ -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;