[gnome-bluetooth] properties: Remove bluetooth_client_remove_device()



commit 0009026937230ecf7996b8089887c45f26e29139
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 13 16:53:57 2011 +0100

    properties: Remove bluetooth_client_remove_device()

 lib/bluetooth-client-private.h |    2 --
 lib/bluetooth-client.c         |   35 -----------------------------------
 lib/gnome-bluetooth.symbols    |    1 -
 3 files changed, 0 insertions(+), 38 deletions(-)
---
diff --git a/lib/bluetooth-client-private.h b/lib/bluetooth-client-private.h
index 8dd9592..82c4f12 100644
--- a/lib/bluetooth-client-private.h
+++ b/lib/bluetooth-client-private.h
@@ -38,8 +38,6 @@ typedef void (*BluetoothClientCreateDeviceFunc) (BluetoothClient *client,
 gboolean bluetooth_client_create_device(BluetoothClient *client,
 			const char *address, const char *agent,
 			BluetoothClientCreateDeviceFunc func, gpointer data);
-gboolean bluetooth_client_remove_device (BluetoothClient *client,
-					 const char      *address);
 
 gboolean bluetooth_client_set_trusted(BluetoothClient *client,
 					const char *device, gboolean trusted);
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index d92b92f..f205694 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1570,41 +1570,6 @@ gboolean bluetooth_client_create_device (BluetoothClient *client,
 	return TRUE;
 }
 
-gboolean bluetooth_client_remove_device (BluetoothClient *client,
-					 const char      *address)
-{
-	BluetoothClientPrivate *priv = BLUETOOTH_CLIENT_GET_PRIVATE(client);
-	GtkTreeIter iter;
-	GDBusProxy *adapter, *device;
-	GError *err = NULL;
-
-	adapter = _bluetooth_client_get_default_adapter(client);
-	if (adapter == NULL)
-		return FALSE;
-
-	if (get_iter_from_address(priv->store, &iter, address, adapter) == FALSE)
-		return FALSE;
-
-	gtk_tree_model_get (GTK_TREE_MODEL(priv->store), &iter,
-			    BLUETOOTH_COLUMN_PROXY, &device, -1);
-	if (device == NULL)
-		return FALSE;
-
-	if (adapter_call_remove_device_sync (ADAPTER (adapter),
-					     g_dbus_proxy_get_object_path (device),
-					     NULL, &err) == FALSE) {
-		g_object_unref (device);
-		g_warning ("Failed to remove device '%s': %s", address,
-			   err->message);
-		g_error_free (err);
-		return FALSE;
-	}
-
-	g_object_unref (device);
-
-	return TRUE;
-}
-
 gboolean
 bluetooth_client_set_trusted (BluetoothClient *client,
 			      const char      *device,
diff --git a/lib/gnome-bluetooth.symbols b/lib/gnome-bluetooth.symbols
index 1a92792..6ef9d7f 100644
--- a/lib/gnome-bluetooth.symbols
+++ b/lib/gnome-bluetooth.symbols
@@ -23,7 +23,6 @@ bluetooth_client_get_model
 bluetooth_client_get_filter_model
 bluetooth_client_get_adapter_model
 bluetooth_client_get_device_model
-bluetooth_client_remove_device
 bluetooth_class_to_type
 bluetooth_type_to_string
 bluetooth_verify_address



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