summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-05-27 10:33:01 -0700
committerMarcel Holtmann <marcel@holtmann.org>2011-05-27 10:33:01 -0700
commita70a9a9e6271b0543ea6d36cf30c77827ade7c44 (patch)
tree2494b557ed467cc9f80c4749f5f6eab644af4097 /plugins
parent9959bcfa4c5d266d9a1242af90f300685b0b2440 (diff)
downloadconnman-a70a9a9e6271b0543ea6d36cf30c77827ade7c44.tar.gz
connman-a70a9a9e6271b0543ea6d36cf30c77827ade7c44.tar.bz2
connman-a70a9a9e6271b0543ea6d36cf30c77827ade7c44.zip
ofono: Remove unused code for online support check
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ofono.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c
index 6e937168..e5b786ec 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -1437,7 +1437,6 @@ static void add_modem(const char *path, DBusMessageIter *prop)
struct modem_data *modem;
dbus_bool_t powered = FALSE;
dbus_bool_t online = FALSE;
- dbus_bool_t has_online = FALSE;
dbus_bool_t locked = FALSE;
gboolean has_sim = FALSE;
gboolean has_reg = FALSE;
@@ -1472,10 +1471,7 @@ static void add_modem(const char *path, DBusMessageIter *prop)
dbus_message_iter_get_basic(&value, &powered);
else if (g_str_equal(key, "Lockdown") == TRUE)
dbus_message_iter_get_basic(&value, &locked);
- else if (g_str_equal(key, "Online") == TRUE) {
- has_online = TRUE;
- dbus_message_iter_get_basic(&value, &online);
- } else if (g_str_equal(key, "Interfaces") == TRUE) {
+ else if (g_str_equal(key, "Interfaces") == TRUE) {
has_sim = modem_has_sim(&value);
has_reg = modem_has_reg(&value);
has_gprs = modem_has_gprs(&value);