From c5d6d86b2fe8a7e173aa0cd6938caf277d4fd9a9 Mon Sep 17 00:00:00 2001 From: Alok Barsode Date: Wed, 24 Aug 2011 16:44:19 +0300 Subject: [PATCH] device: Remove caching of offlinemode in device structure --- src/device.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/device.c b/src/device.c index 5932123..6ccd477 100644 --- a/src/device.c +++ b/src/device.c @@ -43,7 +43,6 @@ struct connman_device { enum connman_device_type type; enum connman_pending_type powered_pending; /* Indicates a pending enable/disable request */ - connman_bool_t offlinemode; connman_bool_t powered; connman_bool_t powered_persistent; connman_bool_t scanning; @@ -672,9 +671,6 @@ int connman_device_set_powered(struct connman_device *device, device->pending_timeout = 0; device->powered_pending = PENDING_NONE; - if (device->offlinemode == TRUE && powered == TRUE) - return __connman_device_disable(device); - device->powered = powered; type = __connman_device_get_service_type(device); @@ -1140,8 +1136,6 @@ int connman_device_register(struct connman_device *device) { __connman_storage_load_device(device); - device->offlinemode = __connman_profile_get_offlinemode(); - return device_probe(device); } -- 2.7.4