openconnect: Remove unused code
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 17 Dec 2010 12:02:20 +0000 (13:02 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 17 Dec 2010 15:48:35 +0000 (16:48 +0100)
plugins/openconnect.c

index 9861b51..6181046 100644 (file)
@@ -38,7 +38,6 @@
 static int oc_notify(DBusMessage *msg, struct connman_provider *provider)
 {
        DBusMessageIter iter, dict;
-       struct oc_data *data;
        const char *reason, *key, *value;
        const char *domain = NULL;
 
@@ -52,12 +51,6 @@ static int oc_notify(DBusMessage *msg, struct connman_provider *provider)
                return VPN_STATE_FAILURE;
        }
 
-       data = connman_provider_get_data(provider);
-       if (!data) {
-               DBG("provider %p no data", provider);
-               return VPN_STATE_FAILURE;
-       }
-
        if (strcmp(reason, "connect"))
                return VPN_STATE_DISCONNECT;