[gnome-bluetooth] lib: Remove unused recurse parameter
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Remove unused recurse parameter
- Date: Thu, 13 Oct 2011 16:45:38 +0000 (UTC)
commit 11201648768d3bc595e93463505f6de08eb39c47
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 13 17:14:28 2011 +0100
lib: Remove unused recurse parameter
It was FALSE for every single user we had.
lib/bluetooth-client-private.h | 3 +--
lib/bluetooth-client.c | 17 +----------------
2 files changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/lib/bluetooth-client-private.h b/lib/bluetooth-client-private.h
index 82c4f12..44ad7b1 100644
--- a/lib/bluetooth-client-private.h
+++ b/lib/bluetooth-client-private.h
@@ -56,8 +56,7 @@ gboolean bluetooth_client_disconnect_service (BluetoothClient *client,
gpointer data);
void bluetooth_client_dump_device (GtkTreeModel *model,
- GtkTreeIter *iter,
- gboolean recurse);
+ GtkTreeIter *iter);
G_END_DECLS
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index f205694..2764e2e 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1872,8 +1872,7 @@ services_foreach (const char *service, gpointer _value, GString *str)
void
bluetooth_client_dump_device (GtkTreeModel *model,
- GtkTreeIter *iter,
- gboolean recurse)
+ GtkTreeIter *iter)
{
GDBusProxy *proxy;
char *address, *alias, *name, *icon, **uuids;
@@ -1950,19 +1949,5 @@ bluetooth_client_dump_device (GtkTreeModel *model,
if (services != NULL)
g_hash_table_unref (services);
g_strfreev (uuids);
-
- if (recurse == FALSE)
- return;
-
- if (is_adapter != FALSE) {
- GtkTreeIter child;
-
- if (gtk_tree_model_iter_children (model, &child, iter) == FALSE)
- return;
- bluetooth_client_dump_device (model, &child, FALSE);
- while (gtk_tree_model_iter_next (model, &child))
- bluetooth_client_dump_device (model, &child, FALSE);
- }
-
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]