Remove connman_device_disconnect_service() as it is not used anymore.
---
 include/device.h |  1 -
 src/device.c     | 17 -----------------
 2 files changed, 18 deletions(-)

diff --git a/include/device.h b/include/device.h
index 4c014d1..6c93645 100644
--- a/include/device.h
+++ b/include/device.h
@@ -112,7 +112,6 @@ void connman_device_regdom_notify(struct connman_device 
*device,
                                        int result, const char *alpha2);
 struct connman_device *connman_device_create_from_index(int index);
 struct connman_device *connman_device_find_by_index(int index);
-int connman_device_disconnect_service(struct connman_device *device);
 int connman_device_reconnect_service(struct connman_device *device);
 
 struct connman_device_driver {
diff --git a/src/device.c b/src/device.c
index 9bd4020..7491dbd 100644
--- a/src/device.c
+++ b/src/device.c
@@ -648,23 +648,6 @@ int __connman_device_disconnect(struct connman_device 
*device)
        return 0;
 }
 
-int connman_device_disconnect_service(struct connman_device *device)
-{
-       DBG("device %p", device);
-
-       if (device->network) {
-               struct connman_service *service =
-                       connman_service_lookup_from_network(device->network);
-
-               if (service)
-                       __connman_service_disconnect(service);
-               else
-                       connman_network_set_connected(device->network, false);
-       }
-
-       return 0;
-}
-
 int connman_device_reconnect_service(struct connman_device *device)
 {
        DBG("device %p", device);
-- 
1.8.5.3

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to