From 5c45cfcc85482b7e7ab09e3dd415c900770adbd3 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 3 Aug 2012 13:30:14 +0200 Subject: device: Remove unused phyindex --- src/connman.h | 4 ---- src/device.c | 14 -------------- 2 files changed, 18 deletions(-) (limited to 'src') diff --git a/src/connman.h b/src/connman.h index 6726078b..721f9af0 100644 --- a/src/connman.h +++ b/src/connman.h @@ -478,10 +478,6 @@ int __connman_device_request_hidden_scan(struct connman_device *device, connman_bool_t __connman_device_isfiltered(const char *devname); -int __connman_device_get_phyindex(struct connman_device *device); -void __connman_device_set_phyindex(struct connman_device *device, - int phyindex); - void __connman_device_set_network(struct connman_device *device, struct connman_network *network); void __connman_device_cleanup_networks(struct connman_device *device); diff --git a/src/device.c b/src/device.c index 0fda950d..ea176807 100644 --- a/src/device.c +++ b/src/device.c @@ -54,7 +54,6 @@ struct connman_device { char *ident; char *path; char *devname; - int phyindex; int index; guint pending_timeout; @@ -423,8 +422,6 @@ struct connman_device *connman_device_create(const char *node, device->type = type; device->name = g_strdup(type2description(device->type)); - device->phyindex = -1; - device->networks = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, free_network); @@ -514,17 +511,6 @@ int connman_device_get_index(struct connman_device *device) return device->index; } -int __connman_device_get_phyindex(struct connman_device *device) -{ - return device->phyindex; -} - -void __connman_device_set_phyindex(struct connman_device *device, - int phyindex) -{ - device->phyindex = phyindex; -} - /** * connman_device_set_interface: * @device: device structure -- cgit v1.2.3