Diff between abfc590fb1e563792172622e3e9ccc61fcd6fa04 and 7e92a9cbe64ebdfe39d1fccf82809576c79f9ace

Changed Files

File Additions Deletions Status
src/adapter.c +0 -24 modified
src/adapter.h +0 -3 modified

Full Patch

diff --git a/src/adapter.c b/src/adapter.c
index 323ba47..b962bc1 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -3479,30 +3479,6 @@ int btd_cancel_authorization(guint id)
 	return 0;
 }
 
-static gchar *adapter_any_path = NULL;
-static int adapter_any_refcount = 0;
-
-const char *btd_adapter_any_request_path(void)
-{
-	if (adapter_any_refcount++ > 0)
-		return adapter_any_path;
-
-	adapter_any_path = g_strdup_printf("%s/any", base_path);
-
-	return adapter_any_path;
-}
-
-void btd_adapter_any_release_path(void)
-{
-	adapter_any_refcount--;
-
-	if (adapter_any_refcount > 0)
-		return;
-
-	g_free(adapter_any_path);
-	adapter_any_path = NULL;
-}
-
 int btd_adapter_restore_powered(struct btd_adapter *adapter)
 {
 	if (adapter->up)
diff --git a/src/adapter.h b/src/adapter.h
index 5b46474..6b27608 100644
--- a/src/adapter.h
+++ b/src/adapter.h
@@ -152,9 +152,6 @@ guint btd_request_authorization(const bdaddr_t *src, const bdaddr_t *dst,
 		const char *uuid, service_auth_cb cb, void *user_data);
 int btd_cancel_authorization(guint id);
 
-const char *btd_adapter_any_request_path(void);
-void btd_adapter_any_release_path(void);
-
 int btd_adapter_restore_powered(struct btd_adapter *adapter);
 
 typedef ssize_t (*btd_adapter_pin_cb_t) (struct btd_adapter *adapter,