diff --git a/android/handsfree.c b/android/handsfree.c
index aa8765e..7475744 100644
--- a/android/handsfree.c
+++ b/android/handsfree.c
free(dev);
}
-static struct hf_device *find_default_device(void)
-{
- /* TODO should be replaced by find_device() eventually */
-
- return queue_peek_head(devices);
-}
-
static bool match_by_bdaddr(const void *data, const void *match_data)
{
const struct hf_device *dev = data;
static struct hf_device *find_device(const bdaddr_t *bdaddr)
{
if (!bacmp(bdaddr, BDADDR_ANY))
- return find_default_device();
+ return queue_peek_head(devices);
return queue_find(devices, match_by_bdaddr, bdaddr);
}