summaryrefslogtreecommitdiff
path: root/plugins/resolvfile.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-08-10 10:23:16 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-08-10 10:23:16 +0200
commit2657bbff7f718c5f822bdffd4b10b70ce3b21a33 (patch)
tree2e26ce47d5028a11a404284d5af9ae5ce0167b60 /plugins/resolvfile.c
parenta98f8a0b02a619b6c7eb5d09c56e4930f6a83eee (diff)
downloadconnman-2657bbff7f718c5f822bdffd4b10b70ce3b21a33.tar.gz
connman-2657bbff7f718c5f822bdffd4b10b70ce3b21a33.tar.bz2
connman-2657bbff7f718c5f822bdffd4b10b70ce3b21a33.zip
The core will remove children in reverse order automatically
Diffstat (limited to 'plugins/resolvfile.c')
-rw-r--r--plugins/resolvfile.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/plugins/resolvfile.c b/plugins/resolvfile.c
index bf480818..5ea3422d 100644
--- a/plugins/resolvfile.c
+++ b/plugins/resolvfile.c
@@ -67,8 +67,6 @@ static int resolvfile_probe(struct connman_element *element)
internet->type = CONNMAN_ELEMENT_TYPE_INTERNET;
- connman_element_set_data(element, internet);
-
connman_element_register(internet, element);
return 0;
@@ -76,15 +74,7 @@ static int resolvfile_probe(struct connman_element *element)
static void resolvfile_remove(struct connman_element *element)
{
- struct connman_element *internet = connman_element_get_data(element);
-
DBG("element %p name %s", element, element->name);
-
- connman_element_set_data(element, NULL);
-
- connman_element_unregister(internet);
-
- connman_element_unref(internet);
}
static struct connman_driver resolvfile_driver = {