[gnome-bluetooth/wip/hadess/accessor-removal: 1/3] lib: Remove bluetooth_client_get_device()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/accessor-removal: 1/3] lib: Remove bluetooth_client_get_device()
- Date: Tue, 30 Nov 2021 13:45:54 +0000 (UTC)
commit 0f0ec7b612ef70356595b8c4733b19ee565f0b7f
Author: Bastien Nocera <hadess hadess net>
Date: Tue Nov 30 12:43:04 2021 +0100
lib: Remove bluetooth_client_get_device()
Was added but not used in the bluez 5.x port in
0b0534924fb5ea781195e116a7dfbf956d16379c.
.ci/gbt.suppr | 4 ++++
lib/bluetooth-client-private.h | 3 ---
lib/bluetooth-client.c | 18 ------------------
lib/gnome-bluetooth.map | 1 -
4 files changed, 4 insertions(+), 22 deletions(-)
---
diff --git a/.ci/gbt.suppr b/.ci/gbt.suppr
index eb6149e1..08a21d0f 100644
--- a/.ci/gbt.suppr
+++ b/.ci/gbt.suppr
@@ -29,3 +29,7 @@ drop = yes
[suppress_function]
symbol_name = bluetooth_client_get_filter_model
drop = yes
+
+[suppress_function]
+symbol_name = bluetooth_client_get_device
+drop = yes
diff --git a/lib/bluetooth-client-private.h b/lib/bluetooth-client-private.h
index ab41e4a1..4fd85d1d 100644
--- a/lib/bluetooth-client-private.h
+++ b/lib/bluetooth-client-private.h
@@ -55,9 +55,6 @@ gboolean bluetooth_client_cancel_setup_device_finish (BluetoothClient *client,
gboolean bluetooth_client_set_trusted(BluetoothClient *client,
const char *device, gboolean trusted);
-GDBusProxy *bluetooth_client_get_device (BluetoothClient *client,
- const char *path);
-
void bluetooth_client_dump_device (GtkTreeModel *model,
GtkTreeIter *iter);
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index d52a43c9..0267796b 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1525,24 +1525,6 @@ bluetooth_client_set_trusted (BluetoothClient *client,
return TRUE;
}
-GDBusProxy *
-bluetooth_client_get_device (BluetoothClient *client,
- const char *path)
-{
- GtkTreeIter iter;
- GDBusProxy *proxy;
-
- if (get_iter_from_path (client->store, &iter, path) == FALSE) {
- g_debug ("Couldn't find device '%s' in tree", path);
- return NULL;
- }
-
- gtk_tree_model_get (GTK_TREE_MODEL(client->store), &iter,
- BLUETOOTH_COLUMN_PROXY, &proxy,
- -1);
- return proxy;
-}
-
static void
connect_callback (GDBusProxy *proxy,
GAsyncResult *res,
diff --git a/lib/gnome-bluetooth.map b/lib/gnome-bluetooth.map
index d5cfc7fe..46258fd5 100644
--- a/lib/gnome-bluetooth.map
+++ b/lib/gnome-bluetooth.map
@@ -12,7 +12,6 @@ global:
bluetooth_client_connect_service;
bluetooth_client_connect_service_finish;
bluetooth_client_set_trusted;
- bluetooth_client_get_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]