bluetooth: Ignore Device.Connected

The Device.Connected was only used for tracking whether a device module
should be loaded, but that information is already included in the
individual profile state properties. The property can therefore be
completely ignored without any loss in functionality.
This commit is contained in:
Tanu Kaskinen 2012-11-22 15:20:24 +01:00
parent 55baf5424e
commit 6545cc77f4
3 changed files with 1 additions and 5 deletions

View file

@ -128,7 +128,6 @@ static pa_bluetooth_device* device_new(pa_bluetooth_discovery *discovery, const
d->transports = pa_hashmap_new(pa_idxset_string_hash_func, pa_idxset_string_compare_func);
d->paired = -1;
d->alias = NULL;
d->device_connected = -1;
PA_LLIST_HEAD_INIT(pa_bluetooth_uuid, d->uuids);
d->address = NULL;
d->class = -1;
@ -348,8 +347,6 @@ static int parse_device_property(pa_bluetooth_device *d, DBusMessageIter *i) {
if (pa_streq(key, "Paired"))
d->paired = !!value;
else if (pa_streq(key, "Connected"))
d->device_connected = !!value;
else if (pa_streq(key, "Trusted"))
d->trusted = !!value;