summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-08-03 13:30:14 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-08-03 15:55:46 +0300
commit5c45cfcc85482b7e7ab09e3dd415c900770adbd3 (patch)
tree2a48e037b594a5725f625fd8910b245e556b43b3
parentf701bbca259f1f35e68d338f31f5373f75f3da5f (diff)
downloadconnman-5c45cfcc85482b7e7ab09e3dd415c900770adbd3.tar.gz
connman-5c45cfcc85482b7e7ab09e3dd415c900770adbd3.tar.bz2
connman-5c45cfcc85482b7e7ab09e3dd415c900770adbd3.zip
device: Remove unused phyindex
-rw-r--r--src/connman.h4
-rw-r--r--src/device.c14
2 files changed, 0 insertions, 18 deletions
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