Remove the unused code
[platform/upstream/connman.git] / src / service.c
index fb4a61f..1eec7ca 100644 (file)
@@ -149,9 +149,6 @@ struct connman_service {
         */
        int user_pdn_connection_refcount;
 #endif
-#if defined TIZEN_TV_EXT
-       enum connman_dnsconfig_method dns_config_method;
-#endif
 };
 
 static bool allow_property_changed(struct connman_service *service);
@@ -5562,6 +5559,21 @@ void __connman_service_update_search_domains(struct connman_service *service,
        service->domains = g_strdupv(domains);
 }
 
+#if defined TIZEN_EXT
+void __connman_service_set_autoconnect(struct connman_service *service,
+                                               bool autoconnect)
+{
+       if (service == NULL)
+               return;
+
+       if (service->autoconnect != autoconnect) {
+               DBG("updated autoconnect flag (%d)", autoconnect);
+               service->autoconnect = autoconnect;
+               service_save(service);
+       }
+}
+#endif
+
 static void service_complete(struct connman_service *service)
 {
        reply_pending(service, EIO);