Get rid of unnecessary manager_stop_adapter function
diff --git a/plugins/hciops.c b/plugins/hciops.c
index fad723c..e7e7e65 100644
--- a/plugins/hciops.c
+++ b/plugins/hciops.c
@@ -2241,7 +2241,12 @@
 		devs[index].pending_cod = 0;
 		devs[index].cache_enable = TRUE;
 		if (!devs[index].pending) {
-			manager_stop_adapter(index);
+			struct btd_adapter *adapter;
+
+			adapter = manager_find_adapter(&devs[index].bdaddr);
+			if (adapter)
+				btd_adapter_stop(index);
+
 			init_pending(index);
 		}
 		break;
diff --git a/src/manager.c b/src/manager.c
index f5882df..e805e0c 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -419,19 +419,6 @@
 	return 0;
 }
 
-int manager_stop_adapter(int id)
-{
-	struct btd_adapter *adapter;
-
-	adapter = manager_find_adapter_by_id(id);
-	if (!adapter) {
-		error("Getting device data failed: hci%d", id);
-		return -EINVAL;
-	}
-
-	return btd_adapter_stop(adapter);
-}
-
 void btd_manager_set_did(uint16_t vendor, uint16_t product, uint16_t version)
 {
 	GSList *l;
diff --git a/src/manager.h b/src/manager.h
index 449b8bd..05c38b3 100644
--- a/src/manager.h
+++ b/src/manager.h
@@ -39,6 +39,5 @@
 GSList *manager_get_adapters(void);
 struct btd_adapter *btd_manager_register_adapter(int id);
 int btd_manager_unregister_adapter(int id);
-int manager_stop_adapter(int id);
 void manager_add_adapter(const char *path);
 void btd_manager_set_did(uint16_t vendor, uint16_t product, uint16_t version);