ipconfig: Remove connman_ipconfig_get_ipv6config
authorSamuel Ortiz <sameo@linux.intel.com>
Tue, 14 Dec 2010 18:15:25 +0000 (19:15 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 14 Dec 2010 18:16:00 +0000 (19:16 +0100)
include/ipconfig.h
src/ipconfig.c

index 92110e0..6d51ebd 100644 (file)
@@ -91,8 +91,6 @@ void connman_ipconfig_set_ops(struct connman_ipconfig *ipconfig,
 int connman_ipaddress_set_ipv6(struct connman_ipaddress *ipaddress,
                                const char *address, const char *gateway,
                                                unsigned char prefix_length);
-struct connman_ipconfig *connman_ipconfig_get_ipv6config(
-                               struct connman_ipconfig *ipconfig);
 int connman_ipconfig_set_method(struct connman_ipconfig *ipconfig,
                                        enum connman_ipconfig_method method);
 void connman_ipconfig_bind(struct connman_ipconfig *ipconfig,
index 17ac5d3..1653158 100644 (file)
@@ -1199,15 +1199,6 @@ void connman_ipconfig_set_ops(struct connman_ipconfig *ipconfig,
        ipconfig->ops = ops;
 }
 
-struct connman_ipconfig *connman_ipconfig_get_ipv6config(
-                               struct connman_ipconfig *ipconfig)
-{
-       if (ipconfig == NULL || ipconfig->type != CONNMAN_IPCONFIG_TYPE_IPV6)
-               return NULL;
-
-       return ipconfig;
-}
-
 /**
  * connman_ipconfig_set_method:
  * @ipconfig: ipconfig structure