summaryrefslogtreecommitdiff
path: root/src/gpm-manager.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-05 00:35:19 -0800
committerStefano Karapetsas <[email protected]>2012-11-05 00:35:19 -0800
commit1291601153a67b059106a578afd28eaed9f5ea7d (patch)
treec86ffdbe7de3f1d95440109c5444d98ab6250ea3 /src/gpm-manager.c
parent773472d4a41e60cf7ad8db55737b0fcd21b934ba (diff)
parent107e3530c49bc8e19e5697e82a98c9c346dee20f (diff)
downloadmate-power-manager-1291601153a67b059106a578afd28eaed9f5ea7d.tar.bz2
mate-power-manager-1291601153a67b059106a578afd28eaed9f5ea7d.tar.xz
Merge pull request #22 from bhull2010/master
Removed unused functions and enum
Diffstat (limited to 'src/gpm-manager.c')
-rw-r--r--src/gpm-manager.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index 6248b97..68ff788 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -1085,33 +1085,6 @@ gpm_manager_settings_changed_cb (GSettings *settings, const gchar *key, GpmManag
gpm_manager_sync_policy_sleep (manager);
}
-#if 0
-/**
- * gpm_manager_screensaver_auth_request_cb:
- * @manager: This manager class instance
- * @auth: If we are trying to authenticate
- *
- * Called when the user is trying or has authenticated
- **/
-static void
-gpm_manager_screensaver_auth_request_cb (GpmScreensaver *screensaver, gboolean auth_begin, GpmManager *manager)
-{
- GError *error = NULL;
-
- if (auth_begin) {
- /* We turn on the monitor unconditionally, as we may be using
- * a smartcard to authenticate and DPMS might still be on.
- * See #350291 for more details */
- gpm_dpms_set_mode (manager->priv->dpms, GPM_DPMS_MODE_ON, &error);
- if (error != NULL) {
- egg_warning ("Failed to turn on DPMS: %s", error->message);
- g_error_free (error);
- error = NULL;
- }
- }
-}
-#endif
-
/**
* gpm_manager_perhaps_recall_response_cb:
*/
@@ -1920,10 +1893,6 @@ gpm_manager_init (GpmManager *manager)
/* try and start an interactive service */
manager->priv->screensaver = gpm_screensaver_new ();
-#if 0
- g_signal_connect (manager->priv->screensaver, "auth-request",
- G_CALLBACK (gpm_manager_screensaver_auth_request_cb), manager);
-#endif
/* try an start an interactive service */
manager->priv->backlight = gpm_backlight_new ();