[gnome-bluetooth] Remove unused variable in create_adapter()



commit a1c95242a7bb23b2be34b1976af98156d79665e7
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Sep 17 17:16:28 2009 +0100

    Remove unused variable in create_adapter()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=595486

 properties/adapter.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/properties/adapter.c b/properties/adapter.c
index dd0b3ca..92d5181 100644
--- a/properties/adapter.c
+++ b/properties/adapter.c
@@ -283,7 +283,7 @@ static void create_adapter(adapter_data *adapter)
 	GHashTable *hash = NULL;
 	GValue *value;
 	DBusGProxy *default_proxy;
-	const gchar *address, *name;
+	const gchar *name;
 	gboolean powered, discoverable;
 	guint timeout;
 
@@ -304,9 +304,6 @@ static void create_adapter(adapter_data *adapter)
 				&hash, G_TYPE_INVALID);
 
 	if (hash != NULL) {
-		value = g_hash_table_lookup(hash, "Address");
-		address = value ? g_value_get_string(value) : NULL;
-
 		value = g_hash_table_lookup(hash, "Name");
 		name = value ? g_value_get_string(value) : NULL;
 
@@ -319,7 +316,6 @@ static void create_adapter(adapter_data *adapter)
 		value = g_hash_table_lookup(hash, "DiscoverableTimeout");
 		timeout = value ? g_value_get_uint(value) : 0;
 	} else {
-		address = NULL;
 		name = NULL;
 		powered = FALSE;
 		discoverable = FALSE;



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