summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-10-04 14:36:26 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-10-04 14:36:26 +0200
commitdfbb38b76f305ed9f2f14e5989edf80947f1e8d5 (patch)
tree68d4c0c2b6064abd6b042274c2617bf4ea5060fe
parentebcd7e17693de21c511b938abbf962183915cd87 (diff)
downloadconnman-dfbb38b76f305ed9f2f14e5989edf80947f1e8d5.tar.gz
connman-dfbb38b76f305ed9f2f14e5989edf80947f1e8d5.tar.bz2
connman-dfbb38b76f305ed9f2f14e5989edf80947f1e8d5.zip
Remove unused __connman_detect_get_blocked function
-rw-r--r--src/connman.h2
-rw-r--r--src/detect.c5
-rw-r--r--src/device.c3
3 files changed, 0 insertions, 10 deletions
diff --git a/src/connman.h b/src/connman.h
index 02e488d9..2f8f5af1 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -187,8 +187,6 @@ gboolean __connman_element_device_isfiltered(const char *devname);
int __connman_detect_init(void);
void __connman_detect_cleanup(void);
-connman_bool_t __connman_detect_get_blocked(int phyindex);
-
#include <connman/ipconfig.h>
int __connman_ipconfig_init(void);
diff --git a/src/detect.c b/src/detect.c
index ed5e8a8f..97a8c601 100644
--- a/src/detect.c
+++ b/src/detect.c
@@ -106,11 +106,6 @@ static struct connman_rtnl detect_rtnl = {
.dellink = detect_dellink,
};
-connman_bool_t __connman_detect_get_blocked(int phyindex)
-{
- return FALSE;
-}
-
int __connman_detect_init(void)
{
DBG("");
diff --git a/src/device.c b/src/device.c
index 315c5148..f6fc15e6 100644
--- a/src/device.c
+++ b/src/device.c
@@ -559,9 +559,6 @@ static int setup_device(struct connman_device *device)
break;
}
- if (__connman_detect_get_blocked(device->phyindex) == TRUE)
- return 0;
-
if (device->offlinemode == FALSE &&
device->powered_persistent == TRUE)
__connman_device_enable(device);