[gnome-bluetooth/wip/hadess/connectable: 3/3] lib: Remove bluetooth_client_get_connectable() API




commit c2255b791f8030260106ed20a6dfc350843df5d9
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jan 20 12:30:23 2022 +0100

    lib: Remove bluetooth_client_get_connectable() API

 lib/bluetooth-client-private.h |  2 --
 lib/bluetooth-client.c         | 28 ----------------------------
 2 files changed, 30 deletions(-)
---
diff --git a/lib/bluetooth-client-private.h b/lib/bluetooth-client-private.h
index e83ea3d1..28478ffa 100644
--- a/lib/bluetooth-client-private.h
+++ b/lib/bluetooth-client-private.h
@@ -52,6 +52,4 @@ gboolean bluetooth_client_cancel_setup_device_finish (BluetoothClient *client,
 gboolean bluetooth_client_set_trusted(BluetoothClient *client,
                                        const char *device, gboolean trusted);
 
-gboolean bluetooth_client_get_connectable(const char **uuids);
-
 GDBusProxy *_bluetooth_client_get_default_adapter (BluetoothClient *client);
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 652d6777..b829984f 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -82,19 +82,6 @@ enum {
 
 static guint signals[LAST_SIGNAL] = { 0 };
 
-static const char *connectable_uuids[] = {
-       "HSP",
-       "AudioSource",
-       "AudioSink",
-       "A/V_RemoteControlTarget",
-       "A/V_RemoteControl",
-       "Headset_-_AG",
-       "Handsfree",
-       "HandsfreeAudioGateway",
-       "HumanInterfaceDeviceService",
-       "Human Interface Device",
-};
-
 G_DEFINE_TYPE(BluetoothClient, bluetooth_client, G_TYPE_OBJECT)
 
 static BluetoothDevice *
@@ -145,21 +132,6 @@ device_list_uuids (const gchar * const *uuids)
        return (char **) g_ptr_array_free (ret, FALSE);
 }
 
-gboolean
-bluetooth_client_get_connectable(const char **uuids)
-{
-       int i, j;
-
-       for (i = 0; uuids && uuids[i] != NULL; i++) {
-               for (j = 0; j < G_N_ELEMENTS (connectable_uuids); j++) {
-                       if (g_str_equal (connectable_uuids[j], uuids[i]))
-                               return TRUE;
-               }
-       }
-
-       return FALSE;
-}
-
 static const char *
 phone_oui_to_icon_name (const char *bdaddr)
 {


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