From bae31a0cb4d6544437d55494f111d77648d41066 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 4 Jan 2010 13:45:26 -0800 Subject: [PATCH] Remove two more unused element functions --- src/element.c | 67 --------------------------------------------------- 1 file changed, 67 deletions(-) diff --git a/src/element.c b/src/element.c index 9cc9bce8..06d8d04c 100644 --- a/src/element.c +++ b/src/element.c @@ -755,49 +755,6 @@ static int set_static_array_property(struct connman_element *element, return 0; } -#if 0 -static int set_property(struct connman_element *element, - enum connman_property_id id, const void *value) -{ - switch (id) { - case CONNMAN_PROPERTY_ID_IPV4_ADDRESS: - __connman_element_lock(element); - g_free(element->ipv4.address); - element->ipv4.address = g_strdup(*((const char **) value)); - __connman_element_unlock(element); - break; - case CONNMAN_PROPERTY_ID_IPV4_NETMASK: - __connman_element_lock(element); - g_free(element->ipv4.netmask); - element->ipv4.netmask = g_strdup(*((const char **) value)); - __connman_element_unlock(element); - break; - case CONNMAN_PROPERTY_ID_IPV4_GATEWAY: - __connman_element_lock(element); - g_free(element->ipv4.gateway); - element->ipv4.gateway = g_strdup(*((const char **) value)); - __connman_element_unlock(element); - break; - case CONNMAN_PROPERTY_ID_IPV4_BROADCAST: - __connman_element_lock(element); - g_free(element->ipv4.broadcast); - element->ipv4.broadcast = g_strdup(*((const char **) value)); - __connman_element_unlock(element); - break; - case CONNMAN_PROPERTY_ID_IPV4_NAMESERVER: - __connman_element_lock(element); - g_free(element->ipv4.nameserver); - element->ipv4.nameserver = g_strdup(*((const char **) value)); - __connman_element_unlock(element); - break; - default: - return -EINVAL; - } - - return 0; -} -#endif - int connman_element_get_value(struct connman_element *element, enum connman_property_id id, void *value) { @@ -907,30 +864,6 @@ static gboolean get_static_array_property(struct connman_element *element, return found; } -#if 0 -static gboolean match_static_property(struct connman_element *element, - const char *name, const void *value) -{ - struct connman_property *property; - gboolean result = FALSE; - - DBG("element %p name %s", element, element->name); - - __connman_element_lock(element); - - property = g_hash_table_lookup(element->properties, name); - if (property != NULL) { - if (property->type == DBUS_TYPE_STRING) - result = g_str_equal(property->value, - *((const char **) value)); - } - - __connman_element_unlock(element); - - return result; -} -#endif - /** * connman_element_set_string: * @element: element structure -- 2.34.1