From: Samuel Ortiz Date: Fri, 25 Feb 2011 00:02:23 +0000 (+0100) Subject: ipconfig: Remove connman_ipconfig_bind X-Git-Tag: 2.0_alpha~1686 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d57f11bf173252ab2404a441cc7c5e6d434dd60;p=framework%2Fconnectivity%2Fconnman.git ipconfig: Remove connman_ipconfig_bind This routine is unused. --- diff --git a/include/ipconfig.h b/include/ipconfig.h index fd6d871..22e8c54 100644 --- a/include/ipconfig.h +++ b/include/ipconfig.h @@ -96,8 +96,6 @@ void connman_ipconfig_set_ops(struct connman_ipconfig *ipconfig, const struct connman_ipconfig_ops *ops); int connman_ipconfig_set_method(struct connman_ipconfig *ipconfig, enum connman_ipconfig_method method); -void connman_ipconfig_bind(struct connman_ipconfig *ipconfig, - struct connman_ipaddress *ipaddress); void __connman_ipconfig_disable_ipv6(struct connman_ipconfig *ipconfig); #ifdef __cplusplus diff --git a/src/ipconfig.c b/src/ipconfig.c index 4cf4922..12e297a 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1336,25 +1336,6 @@ enum connman_ipconfig_method __connman_ipconfig_get_method(struct connman_ipconf return ipconfig->method; } -/** - * connman_ipconfig_bind: - * @ipconfig: ipconfig structure - * @ipaddress: ipaddress structure - * - * Bind IP address details to configuration - */ -void connman_ipconfig_bind(struct connman_ipconfig *ipconfig, - struct connman_ipaddress *ipaddress) -{ - struct connman_ipconfig *origin; - - origin = ipconfig->origin ? ipconfig->origin : ipconfig; - - connman_ipaddress_copy(origin->address, ipaddress); - - connman_inet_set_address(origin->index, origin->address); -} - void __connman_ipconfig_set_element_ipv6_gateway( struct connman_ipconfig *ipconfig, struct connman_element *element)