Don't add policy to network objects
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 28 Dec 2008 06:44:30 +0000 (07:44 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 28 Dec 2008 06:44:30 +0000 (07:44 +0100)
src/element.c

index 9045c9b..42e4e87 100644 (file)
@@ -443,7 +443,6 @@ static DBusMessage *network_get_properties(DBusConnection *conn,
        struct connman_element *element = data;
        DBusMessage *reply;
        DBusMessageIter array, dict;
-       const char *str;
 
        DBG("conn %p", conn);
 
@@ -462,11 +461,6 @@ static DBusMessage *network_get_properties(DBusConnection *conn,
                connman_dbus_dict_append_variant(&dict, "Device",
                                DBUS_TYPE_OBJECT_PATH, &element->parent->path);
 
-       str = __connman_element_policy2string(element->policy);
-       if (str != NULL)
-               connman_dbus_dict_append_variant(&dict, "Policy",
-                                               DBUS_TYPE_STRING, &str);
-
        connman_dbus_dict_append_variant(&dict, "Available",
                                        DBUS_TYPE_BOOLEAN, &element->available);