summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-12-23 16:36:46 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2010-12-23 16:36:46 +0100
commit3583d87ad728b9fda4aa8710a930f3035796fc56 (patch)
tree735399db96438a46231bd57dfa82c863f873dee2
parent8921d47be767138240611eedfd6e7e3f5c61d589 (diff)
downloadconnman-3583d87ad728b9fda4aa8710a930f3035796fc56.tar.gz
connman-3583d87ad728b9fda4aa8710a930f3035796fc56.tar.bz2
connman-3583d87ad728b9fda4aa8710a930f3035796fc56.zip
network: Remove unused network_set_passphrase routine
-rw-r--r--include/network.h2
-rw-r--r--src/network.c28
2 files changed, 0 insertions, 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
@@ -1287,34 +1287,6 @@ const char *connman_network_get_string(struct connman_network *network,
}
/**
- * 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
* @key: unique identifier