From c189fddf7c2ef41413cc20e3f5827b14c287d019 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 19 Nov 2012 16:02:45 +0100 Subject: [PATCH] device: Remove not really used auto_id member from btd_device auto_id is not used anymore as LE device connect is now done by adapter autoconnect list. --- src/device.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/device.c b/src/device.c index bc78fa7ec..44e58ac93 100644 --- a/src/device.c +++ b/src/device.c @@ -174,7 +174,6 @@ struct btd_device { GSList *attios; GSList *attios_offline; guint attachid; /* Attrib server attach */ - guint auto_id; /* Auto connect source id */ gboolean connected; gboolean profiles_connected; /* Profile level connected */ @@ -346,9 +345,6 @@ static void device_free(gpointer user_data) if (device->discov_timer) g_source_remove(device->discov_timer); - if (device->auto_id) - g_source_remove(device->auto_id); - DBG("%p", device); if (device->authr) @@ -4027,11 +4023,6 @@ gboolean btd_device_remove_attio_callback(struct btd_device *device, guint id) if (device->attios != NULL || device->attios_offline != NULL) return TRUE; - if (device->auto_id) { - g_source_remove(device->auto_id); - device->auto_id = 0; - } - attio_cleanup(device); return TRUE; -- 2.11.0