device: Remove unused phyindex
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 3 Aug 2012 11:30:14 +0000 (13:30 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 3 Aug 2012 12:55:46 +0000 (15:55 +0300)
src/connman.h
src/device.c

index 6726078..721f9af 100644 (file)
@@ -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);
index 0fda950..ea17680 100644 (file)
@@ -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