From 3583d87ad728b9fda4aa8710a930f3035796fc56 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Thu, 23 Dec 2010 16:36:46 +0100 Subject: network: Remove unused network_set_passphrase routine --- include/network.h | 2 -- src/network.c | 28 ---------------------------- 2 files changed, 30 deletions(-) diff --git a/include/network.h b/include/network.h index 0b538a40..a2b768b4 100644 --- a/include/network.h +++ b/include/network.h @@ -107,8 +107,6 @@ int connman_network_set_string(struct connman_network *network, const char *key, const char *value); const char *connman_network_get_string(struct connman_network *network, const char *key); -int connman_network_set_passphrase(struct connman_network *network, - const char* passphrase); int connman_network_set_bool(struct connman_network *network, const char *key, connman_bool_t value); connman_bool_t connman_network_get_bool(struct connman_network *network, diff --git a/src/network.c b/src/network.c index 81f963ed..13d6e894 100644 --- a/src/network.c +++ b/src/network.c @@ -1286,34 +1286,6 @@ const char *connman_network_get_string(struct connman_network *network, return connman_element_get_string(&network->element, key); } -/** - * connman_network_set_passphrase: - * @network: network structure - * @passphrase: network passphrase - * - * Set network passphrase. - * If the network is linked to a service, the latter gets his passphrase - * set as well. - */ -int connman_network_set_passphrase(struct connman_network *network, - const char* passphrase) -{ - struct connman_service *service; - - service = __connman_service_lookup_from_network(network); - if (service == NULL) { - connman_network_set_string(network, "WiFi.Passphrase", - passphrase); - - return 0; - } - - __connman_service_set_passphrase(service, passphrase); - - return 0; -} - - /** * connman_network_set_bool: * @network: network structure -- cgit v1.2.3