[gnome-bluetooth/wip/hadess/accessor-removal: 2/3] lib: Remove bluetooth_client_get_model()




commit f832dba0b00c69d1b8ae7c1bf90cddfea00f9fea
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Nov 30 14:40:36 2021 +0100

    lib: Remove bluetooth_client_get_model()

 .ci/gbt.suppr           |  6 +++++-
 lib/bluetooth-client.c  | 19 -------------------
 lib/bluetooth-client.h  |  1 -
 lib/gnome-bluetooth.map |  1 -
 4 files changed, 5 insertions(+), 22 deletions(-)
---
diff --git a/.ci/gbt.suppr b/.ci/gbt.suppr
index 08a21d0f..aab0f0e3 100644
--- a/.ci/gbt.suppr
+++ b/.ci/gbt.suppr
@@ -1,5 +1,5 @@
 [suppress_function]
-symbol_name_regexp = bluetooth_agent_.*
+symbol_name_regexp = bluetooth_agent_*
 drop = yes
 
 [suppress_function]
@@ -33,3 +33,7 @@ drop = yes
 [suppress_function]
 symbol_name = bluetooth_client_get_device
 drop = yes
+
+[suppress_function]
+symbol_name = bluetooth_client_get_model
+drop = yes
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 0267796b..96dcbe9a 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1274,25 +1274,6 @@ bluetooth_client_get_devices (BluetoothClient *client)
        return G_LIST_STORE (g_object_ref (client->list_store));
 }
 
-/**
- * bluetooth_client_get_model:
- * @client: a #BluetoothClient object
- *
- * Returns an unfiltered #GtkTreeModel representing the adapter and devices available on the system.
- *
- * Return value: (transfer full): a #GtkTreeModel object.
- **/
-GtkTreeModel *bluetooth_client_get_model (BluetoothClient *client)
-{
-       GtkTreeModel *model;
-
-       g_return_val_if_fail (BLUETOOTH_IS_CLIENT (client), NULL);
-
-       model = GTK_TREE_MODEL (g_object_ref(client->store));
-
-       return model;
-}
-
 typedef struct {
        BluetoothClientSetupFunc func;
        BluetoothClient *client;
diff --git a/lib/bluetooth-client.h b/lib/bluetooth-client.h
index 82b95f3a..877a4d5c 100644
--- a/lib/bluetooth-client.h
+++ b/lib/bluetooth-client.h
@@ -32,7 +32,6 @@ G_DECLARE_FINAL_TYPE (BluetoothClient, bluetooth_client, BLUETOOTH, CLIENT, GObj
 
 BluetoothClient *bluetooth_client_new(void);
 
-GtkTreeModel *bluetooth_client_get_model(BluetoothClient *client);
 GListStore *bluetooth_client_get_devices (BluetoothClient *client);
 
 void bluetooth_client_connect_service (BluetoothClient     *client,
diff --git a/lib/gnome-bluetooth.map b/lib/gnome-bluetooth.map
index 46258fd5..c57e249b 100644
--- a/lib/gnome-bluetooth.map
+++ b/lib/gnome-bluetooth.map
@@ -8,7 +8,6 @@ global:
   bluetooth_client_get_type;
   bluetooth_client_new;
   bluetooth_client_get_devices;
-  bluetooth_client_get_model;
   bluetooth_client_connect_service;
   bluetooth_client_connect_service_finish;
   bluetooth_client_set_trusted;


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