[gnome-settings-daemon] Remove unused do_sleep_action function



commit 8c6f3930a7090fc579a2f1442e4d73cbc36a8ae2
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Mar 9 11:45:51 2010 +0000

    Remove unused do_sleep_action function

 plugins/media-keys/gsd-media-keys-manager.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index 85f12a3..8c91d65 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -248,18 +248,6 @@ execute (GsdMediaKeysManager *manager,
 }
 
 static void
-do_sleep_action (char *cmd1,
-                 char *cmd2)
-{
-        if (g_spawn_command_line_async (cmd1, NULL) == FALSE) {
-                if (g_spawn_command_line_async (cmd2, NULL) == FALSE) {
-                        acme_error (_("Couldn't put the machine to sleep.\n"
-                                        "Verify that the machine is correctly configured."));
-                }
-        }
-}
-
-static void
 dialog_init (GsdMediaKeysManager *manager)
 {
         if (manager->priv->dialog != NULL



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]