summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-05-28 10:04:50 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-05-28 15:42:41 +0300
commitecc9daca9a8a7d480bc5ad31732b280b1e564c2f (patch)
tree14b9eb3b2c5d1d7d2d056ddf689b2782177881c3 /src/config.c
parent41b07a35a550d1137d119da3def6db8c779d9300 (diff)
downloadconnman-ecc9daca9a8a7d480bc5ad31732b280b1e564c2f.tar.gz
connman-ecc9daca9a8a7d480bc5ad31732b280b1e564c2f.tar.bz2
connman-ecc9daca9a8a7d480bc5ad31732b280b1e564c2f.zip
config: Remove unused function
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/config.c b/src/config.c
index 66e13161..ba463668 100644
--- a/src/config.c
+++ b/src/config.c
@@ -461,62 +461,6 @@ static struct connman_config *create_config(const char *ident)
return config;
}
-int __connman_config_load_service(GKeyFile *keyfile, const char *group,
- connman_bool_t persistent)
-{
- struct connman_config *config;
- const char *service_name;
- char *ident, *content = NULL;
- gsize content_length;
- int err;
-
- service_name = group + strlen("service_");
- ident = g_strdup_printf("%s_%s", INTERNAL_CONFIG_PREFIX, service_name);
- if (ident == NULL)
- return -ENOMEM;
-
- DBG("ident %s", ident);
-
- config = g_hash_table_lookup(config_table, ident);
- if (config == NULL) {
- config = create_config(ident);
- if (config == NULL) {
- err = -ENOMEM;
- goto out;
- }
-
- config->protected = FALSE;
- }
-
- err = load_service(keyfile, group, config);
- if (persistent == FALSE || err < 0)
- goto out;
-
- g_key_file_set_string(keyfile, "global", CONFIG_KEY_NAME,
- service_name);
- g_key_file_set_string(keyfile, "global", CONFIG_KEY_DESC,
- "Internal Config File");
- g_key_file_set_boolean(keyfile, "global", CONFIG_KEY_PROT, FALSE);
-
- content = g_key_file_to_data(keyfile, &content_length, NULL);
- if (content == NULL) {
- err = -EIO;
- goto out;
- }
-
- DBG("Saving %zu bytes to %s", content_length, service_name);
-
- __connman_storage_save_config(keyfile, ident);
-
- return 0;
-
-out:
- g_free(ident);
- g_free(content);
-
- return err;
-}
-
static connman_bool_t validate_ident(const char *ident)
{
unsigned int i;