[gnome-bluetooth] lib: remove unused GError



commit bccc0f84736a4cf20c87b6570701afa828b78858
Author: Gustavo Padovan <gustavo padovan collabora co uk>
Date:   Fri May 31 20:21:19 2013 -0300

    lib: remove unused GError
    
    https://bugzilla.gnome.org/show_bug.cgi?id=701399

 lib/bluetooth-client.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index ff71b96..8b0b1fa 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1005,7 +1005,6 @@ static void bluetooth_client_finalize(GObject *client)
 static void bluetooth_client_class_init(BluetoothClientClass *klass)
 {
        GObjectClass *object_class = (GObjectClass *) klass;
-       GError *error = NULL;
 
        g_type_class_add_private(klass, sizeof(BluetoothClientPrivate));
 
@@ -1058,12 +1057,6 @@ static void bluetooth_client_class_init(BluetoothClientClass *klass)
                                         g_param_spec_boolean ("default-adapter-discovering", NULL,
                                                              "Whether the default adapter is searching for 
devices",
                                                               FALSE, G_PARAM_READWRITE));
-
-       if (error != NULL) {
-               g_printerr("Connecting to system bus failed: %s\n",
-                                                       error->message);
-               g_error_free(error);
-       }
 }
 
 /**


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