summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2021-11-02 15:25:12 +0100
committerBastien Nocera <hadess@hadess.net>2021-11-02 15:28:17 +0100
commitfe4480906d5e1eeb61583c78ebf813094cf5e5b1 (patch)
treea9bcd63b0e1452b5dbf1d7d811f3cfa7e2caeb5d
parenta7f0b152e5213377760d09deca4cdc0219f89862 (diff)
downloadgnome-shell-wip/hadess/import-gnome-bluetooth.tar.gz
bluetooth: Remove unused shell_bluetooth_type_to_filter_string()wip/hadess/import-gnome-bluetooth
-rw-r--r--src/shell-bluetooth-utils.c54
-rw-r--r--src/shell-bluetooth-utils.h2
2 files changed, 0 insertions, 56 deletions
diff --git a/src/shell-bluetooth-utils.c b/src/shell-bluetooth-utils.c
index 7d3d40b78..7bd241718 100644
--- a/src/shell-bluetooth-utils.c
+++ b/src/shell-bluetooth-utils.c
@@ -98,60 +98,6 @@ shell_bluetooth_type_to_string (ShellBluetoothType type)
}
/**
- * shell_bluetooth_type_to_filter_string:
- * @type: a #ShellBluetoothType
- *
- * 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 *
-shell_bluetooth_type_to_filter_string (ShellBluetoothType type)
-{
- switch (type) {
- case SHELL_BLUETOOTH_TYPE_ANY:
- return _("All types");
- default:
- return shell_bluetooth_type_to_string (type);
- }
-
- g_assert_not_reached ();
-}
-
-/**
- * shell_bluetooth_verify_address:
- * @bdaddr: a string representing a ShellBluetooth address
- *
- * Returns whether the string is a valid ShellBluetooth address. This does not contact the device in any way.
- *
- * Return value: %TRUE if the address is valid, %FALSE if not.
- **/
-gboolean
-shell_bluetooth_verify_address (const char *bdaddr)
-{
- guint i;
-
- g_return_val_if_fail (bdaddr != NULL, FALSE);
-
- if (strlen (bdaddr) != 17)
- return FALSE;
-
- for (i = 0; i < 17; i++) {
- if (((i + 1) % 3) == 0) {
- if (bdaddr[i] != ':')
- return FALSE;
- continue;
- }
- if (g_ascii_isxdigit (bdaddr[i]) == FALSE)
- return FALSE;
- }
-
- return TRUE;
-}
-
-/**
* shell_bluetooth_class_to_type:
* @class: a ShellBluetooth device class
*
diff --git a/src/shell-bluetooth-utils.h b/src/shell-bluetooth-utils.h
index 5a81c2a55..4c9d6ac19 100644
--- a/src/shell-bluetooth-utils.h
+++ b/src/shell-bluetooth-utils.h
@@ -60,6 +60,4 @@
ShellBluetoothType shell_bluetooth_class_to_type (guint32 class);
ShellBluetoothType shell_bluetooth_appearance_to_type (guint16 appearance);
const gchar *shell_bluetooth_type_to_string (guint type);
-const gchar *shell_bluetooth_type_to_filter_string (guint type);
-gboolean shell_bluetooth_verify_address (const char *bdaddr);
const char *shell_bluetooth_uuid_to_string (const char *uuid);