summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-09-26 08:58:58 (GMT)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-09-27 08:28:28 (GMT)
commit5e6894d4a634d389e11e52c16ef01b6e272ca168 (patch)
tree2c3a21670b5fddc36fba1762b62cc5039f8f75dc /plugins
parenta374db97cda09ca0cdd16ca0c19f7d1ecdc974a8 (diff)
downloadconnman-5e6894d4a634d389e11e52c16ef01b6e272ca168.zip
connman-5e6894d4a634d389e11e52c16ef01b6e272ca168.tar.gz
connman-5e6894d4a634d389e11e52c16ef01b6e272ca168.tar.bz2
session: Remove unused functions
Basic types are not used for the configuration anymore.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/session_policy.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/plugins/session_policy.c b/plugins/session_policy.c
index 31ded23..dadfd5b 100644
--- a/plugins/session_policy.c
+++ b/plugins/session_policy.c
@@ -35,34 +35,6 @@
static GHashTable *config_hash;
-static int policy_get_bool(struct connman_session *session,
- const char *key, connman_bool_t *val)
-{
- DBG("sesion %p key %s", session, key);
-
- if (g_str_equal(key, "Priority") == TRUE)
- *val = FALSE;
- else if (g_str_equal(key, "EmergencyCall") == TRUE)
- *val = FALSE;
- else
- return -EINVAL;
-
- return 0;
-}
-
-static int policy_get_string(struct connman_session *session,
- const char *key, char **val)
-{
- DBG("session %p key %s", session, key);
-
- if (g_str_equal(key, "RoamingPolicy") == TRUE)
- *val = "default";
- else
- return -EINVAL;
-
- return 0;
-}
-
static struct connman_session_config *policy_create(
struct connman_session *session)
{
@@ -99,8 +71,6 @@ static void policy_destroy(struct connman_session *session)
static struct connman_session_policy session_policy = {
.name = "session policy configuration",
.priority = CONNMAN_SESSION_POLICY_PRIORITY_LOW,
- .get_bool = policy_get_bool,
- .get_string = policy_get_string,
.create = policy_create,
.destroy = policy_destroy,
};