OSDN Git Service

core: Remove unused adapter_any references
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 14 Dec 2012 10:16:23 +0000 (12:16 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 14 Dec 2012 10:16:50 +0000 (12:16 +0200)
src/adapter.c
src/adapter.h

index 323ba47..b962bc1 100644 (file)
@@ -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)
index 5b46474..6b27608 100644 (file)
@@ -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,