[gnome-bluetooth/wip/hadess/cleanups: 2/2] lib: Remove unused bluetooth_type_to_filter_string()




commit 4d08a5eb37df5a2b2e10d403d8d7acc8a2db9bae
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Nov 2 15:24:18 2021 +0100

    lib: Remove unused bluetooth_type_to_filter_string()
    
    It was used to label the filter drop-down in the chooser widgets.

 lib/bluetooth-utils.c   | 23 -----------------------
 lib/bluetooth-utils.h   |  1 -
 lib/gnome-bluetooth.map |  1 -
 3 files changed, 25 deletions(-)
---
diff --git a/lib/bluetooth-utils.c b/lib/bluetooth-utils.c
index b2f21886..6b025fc9 100644
--- a/lib/bluetooth-utils.c
+++ b/lib/bluetooth-utils.c
@@ -103,29 +103,6 @@ bluetooth_type_to_string (BluetoothType type)
        return _("Unknown");
 }
 
-/**
- * bluetooth_type_to_filter_string:
- * @type: a #BluetoothType
- *
- * Returns a human-readable string representation of @type usable for display to users,
- * when type filters are displayed. Do not free the return value.
- * The returned string is already translated with gettext().
- *
- * Return value: a string.
- **/
-const gchar *
-bluetooth_type_to_filter_string (BluetoothType type)
-{
-       switch (type) {
-       case BLUETOOTH_TYPE_ANY:
-               return _("All types");
-       default:
-               return bluetooth_type_to_string (type);
-       }
-
-       g_assert_not_reached ();
-}
-
 /**
  * bluetooth_verify_address:
  * @bdaddr: a string representing a Bluetooth address
diff --git a/lib/bluetooth-utils.h b/lib/bluetooth-utils.h
index 4781909b..5e69504c 100644
--- a/lib/bluetooth-utils.h
+++ b/lib/bluetooth-utils.h
@@ -60,7 +60,6 @@
 BluetoothType  bluetooth_class_to_type         (guint32 class);
 BluetoothType  bluetooth_appearance_to_type    (guint16 appearance);
 const gchar   *bluetooth_type_to_string        (guint type);
-const gchar   *bluetooth_type_to_filter_string (guint type);
 gboolean       bluetooth_verify_address        (const char *bdaddr);
 const char    *bluetooth_uuid_to_string        (const char *uuid);
 
diff --git a/lib/gnome-bluetooth.map b/lib/gnome-bluetooth.map
index 09d6dd63..b7f6c183 100644
--- a/lib/gnome-bluetooth.map
+++ b/lib/gnome-bluetooth.map
@@ -17,7 +17,6 @@ global:
   bluetooth_client_get_device;
   bluetooth_class_to_type;
   bluetooth_type_to_string;
-  bluetooth_type_to_filter_string;
   bluetooth_verify_address;
   bluetooth_uuid_to_string;
   bluetooth_send_to_address;


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