ipconfig: Remove __connman_ipconfig_set_element_ipv6_gateway
authorSamuel Ortiz <sameo@linux.intel.com>
Fri, 25 Feb 2011 00:04:28 +0000 (01:04 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 25 Feb 2011 00:04:28 +0000 (01:04 +0100)
This routine is unused.

src/connman.h
src/ipconfig.c

index f248280..a390516 100644 (file)
@@ -257,10 +257,6 @@ void __connman_ipconfig_append_ethernet(struct connman_ipconfig *ipconfig,
 enum connman_ipconfig_method __connman_ipconfig_get_method(
                                struct connman_ipconfig *ipconfig);
 
-void __connman_ipconfig_set_element_ipv6_gateway(
-                       struct connman_ipconfig *ipconfig,
-                               struct connman_element *element);
-
 int __connman_ipconfig_address_add(struct connman_ipconfig *ipconfig);
 int __connman_ipconfig_address_remove(struct connman_ipconfig *ipconfig);
 int __connman_ipconfig_gateway_add(struct connman_ipconfig *ipconfig);
index 12e297a..d620383 100644 (file)
@@ -1336,14 +1336,6 @@ enum connman_ipconfig_method __connman_ipconfig_get_method(struct connman_ipconf
        return ipconfig->method;
 }
 
-void __connman_ipconfig_set_element_ipv6_gateway(
-                       struct connman_ipconfig *ipconfig,
-                               struct connman_element *element)
-{
-       if (ipconfig->type == CONNMAN_IPCONFIG_TYPE_IPV6)
-               element->ipv6.gateway = ipconfig->address->gateway;
-}
-
 int __connman_ipconfig_address_add(struct connman_ipconfig *ipconfig)
 {
        DBG("");