[gnome-bluetooth] lib: Remove bluetooth_client_get_device_filter_model



commit b4e1a949ca34728b9846f3e47f031a48f0099591
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Sep 22 17:43:01 2011 +0100

    lib: Remove bluetooth_client_get_device_filter_model
    
    It was unused, and looks like a liability.

 .../gnome-bluetooth-sections.txt                   |    1 -
 lib/bluetooth-client.c                             |   31 --------------------
 lib/bluetooth-client.h                             |    3 --
 lib/gnome-bluetooth.symbols                        |    1 -
 4 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/docs/reference/libgnome-bluetooth/gnome-bluetooth-sections.txt b/docs/reference/libgnome-bluetooth/gnome-bluetooth-sections.txt
index 2ceda4e..1e97b25 100644
--- a/docs/reference/libgnome-bluetooth/gnome-bluetooth-sections.txt
+++ b/docs/reference/libgnome-bluetooth/gnome-bluetooth-sections.txt
@@ -32,7 +32,6 @@ bluetooth_client_get_model
 bluetooth_client_get_filter_model
 bluetooth_client_get_adapter_model
 bluetooth_client_get_device_model
-bluetooth_client_get_device_filter_model
 bluetooth_type_to_string
 bluetooth_verify_address
 bluetooth_uuid_to_string
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 585a202..1309e0c 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1260,37 +1260,6 @@ GtkTreeModel *bluetooth_client_get_device_model (BluetoothClient *client,
 }
 
 /**
- * bluetooth_client_get_device_filter_model:
- * @client: a #BluetoothClient object
- * @adapter: a #DBusGProxy representing a particular adapter, or %NULL for the default adapter.
- * @func: a #GtkTreeModelFilterVisibleFunc
- * @data: user data to pass to gtk_tree_model_filter_set_visible_func()
- * @destroy: a destroy function for gtk_tree_model_filter_set_visible_func()
- *
- * Returns a #GtkTreeModel of adapters filtered using the @func, @data and
- * @destroy arguments to pass to gtk_tree_model_filter_set_visible_func().
- *
- * Return value: (transfer full): a #GtkTreeModel object.
- **/
-GtkTreeModel *bluetooth_client_get_device_filter_model(BluetoothClient *client,
-		DBusGProxy *adapter, GtkTreeModelFilterVisibleFunc func,
-				gpointer data, GDestroyNotify destroy)
-{
-	GtkTreeModel *model;
-
-	g_return_val_if_fail (BLUETOOTH_IS_CLIENT (client), NULL);
-
-	DBG("client %p", client);
-
-	model = bluetooth_client_get_device_model(client, adapter);
-
-	gtk_tree_model_filter_set_visible_func(GTK_TREE_MODEL_FILTER(model),
-							func, data, destroy);
-
-	return model;
-}
-
-/**
  * bluetooth_client_get_default_adapter:
  * @client: a #BluetoothClient object
  *
diff --git a/lib/bluetooth-client.h b/lib/bluetooth-client.h
index 89ec54e..9a4322a 100644
--- a/lib/bluetooth-client.h
+++ b/lib/bluetooth-client.h
@@ -66,9 +66,6 @@ GtkTreeModel *bluetooth_client_get_filter_model(BluetoothClient *client,
 GtkTreeModel *bluetooth_client_get_adapter_model(BluetoothClient *client);
 GtkTreeModel *bluetooth_client_get_device_model(BluetoothClient *client,
 							DBusGProxy *adapter);
-GtkTreeModel *bluetooth_client_get_device_filter_model(BluetoothClient *client,
-		DBusGProxy *adapter, GtkTreeModelFilterVisibleFunc func,
-				gpointer data, GDestroyNotify destroy);
 
 gboolean bluetooth_client_get_discoverable (BluetoothClient *client);
 
diff --git a/lib/gnome-bluetooth.symbols b/lib/gnome-bluetooth.symbols
index 0f9df68..50aa5c8 100644
--- a/lib/gnome-bluetooth.symbols
+++ b/lib/gnome-bluetooth.symbols
@@ -26,7 +26,6 @@ bluetooth_client_get_model
 bluetooth_client_get_filter_model
 bluetooth_client_get_adapter_model
 bluetooth_client_get_device_model
-bluetooth_client_get_device_filter_model
 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]