[gnome-shell/wip/hadess/import-gnome-bluetooth: 4/7] bluetooth: Remove unused shell_bluetooth_send_to_address()




commit 561636d249d1654f024cd0aae85c719d6d41bc2f
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Nov 2 15:09:42 2021 +0100

    bluetooth: Remove unused shell_bluetooth_send_to_address()

 src/shell-bluetooth-utils.c | 33 ---------------------------------
 src/shell-bluetooth-utils.h |  3 ---
 2 files changed, 36 deletions(-)
---
diff --git a/src/shell-bluetooth-utils.c b/src/shell-bluetooth-utils.c
index f979dcaacd..7d3d40b787 100644
--- a/src/shell-bluetooth-utils.c
+++ b/src/shell-bluetooth-utils.c
@@ -395,36 +395,3 @@ shell_bluetooth_uuid_to_string (const char *uuid)
                return uuid16_to_string (uuid16, uuid);
        return uuid16_custom_to_string (uuid16, uuid);
 }
-
-/**
- * shell_bluetooth_send_to_address:
- * @address: Remote device to use
- * @alias: Remote device's name
- *
- * Start a GUI application for transfering files over ShellBluetooth.
- **/
-void
-shell_bluetooth_send_to_address (const char *address,
-                          const char *alias)
-{
-       GPtrArray *a;
-       GError *err = NULL;
-
-       a = g_ptr_array_new_with_free_func ((GDestroyNotify) g_free);
-
-       g_ptr_array_add (a, g_strdup ("bluetooth-sendto"));
-       if (address != NULL)
-               g_ptr_array_add (a, g_strdup_printf ("--device=%s", address));
-       if (address != NULL && alias != NULL)
-               g_ptr_array_add (a, g_strdup_printf ("--name=%s", alias));
-       g_ptr_array_add (a, NULL);
-
-       if (g_spawn_async(NULL, (char **) a->pdata, NULL,
-                         G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &err) == FALSE) {
-               g_printerr("Couldn't execute command: %s\n", err->message);
-               g_error_free (err);
-       }
-
-       g_ptr_array_free (a, TRUE);
-}
-
diff --git a/src/shell-bluetooth-utils.h b/src/shell-bluetooth-utils.h
index 4c9a88e877..5a81c2a554 100644
--- a/src/shell-bluetooth-utils.h
+++ b/src/shell-bluetooth-utils.h
@@ -63,6 +63,3 @@ 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);
-
-void shell_bluetooth_send_to_address (const char *address,
-                               const char *alias);


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