diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-12-07 09:09:11 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-07 09:09:11 +0100 |
commit | cca49d38b4ec29a42821697a8c6b4c3e953c11f3 (patch) | |
tree | 855a81af51d0f237176c86987fbd51d3fc04b737 /src/device.c | |
parent | 617220b9b366637aa0377e20cd0b4929988fedeb (diff) | |
download | connman-cca49d38b4ec29a42821697a8c6b4c3e953c11f3.tar.gz connman-cca49d38b4ec29a42821697a8c6b4c3e953c11f3.tar.bz2 connman-cca49d38b4ec29a42821697a8c6b4c3e953c11f3.zip |
Remove unused secondary feature of devices and networks
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 32 |
1 files changed, 3 insertions, 29 deletions
diff --git a/src/device.c b/src/device.c index 3959ac98..fde5fd6d 100644 --- a/src/device.c +++ b/src/device.c @@ -36,7 +36,6 @@ struct connman_device { struct connman_element element; enum connman_device_type type; enum connman_device_mode mode; - connman_bool_t secondary; connman_bool_t offlinemode; connman_bool_t blocked; connman_bool_t powered; @@ -811,10 +810,9 @@ struct connman_device *connman_device_create(const char *node, device->element.ipv4.method = CONNMAN_IPCONFIG_METHOD_DHCP; - device->type = type; - device->name = g_strdup(type2description(device->type)); - device->mode = CONNMAN_DEVICE_MODE_UNKNOWN; - device->secondary = FALSE; + device->type = type; + device->name = g_strdup(type2description(device->type)); + device->mode = CONNMAN_DEVICE_MODE_UNKNOWN; device->powered_persistent = TRUE; @@ -1025,30 +1023,6 @@ enum connman_device_mode connman_device_get_mode(struct connman_device *device) } /** - * connman_device_set_secondary: - * @device: device structure - * @secondary: secondary value - * - * Change secondary value of device - */ -void connman_device_set_secondary(struct connman_device *device, - connman_bool_t secondary) -{ - device->secondary = secondary; -} - -/** - * connman_device_get_secondary: - * @device: device structure - * - * Get secondary value of device - */ -connman_bool_t connman_device_get_secondary(struct connman_device *device) -{ - return device->secondary; -} - -/** * connman_device_set_powered: * @device: device structure * @powered: powered state |