emulator: Remove unneeded btdev_set_bdaddr function

This commit is contained in:
Johan Hedberg 2013-04-30 13:21:23 +03:00
parent cc11bc19c2
commit 890fac2917
2 changed files with 0 additions and 9 deletions

View File

@ -445,14 +445,6 @@ void btdev_destroy(struct btdev *btdev)
free(btdev);
}
void btdev_set_bdaddr(struct btdev *btdev, uint8_t *bdaddr)
{
if (!btdev)
return;
memcpy(btdev->bdaddr, bdaddr, 6);
}
const uint8_t *btdev_get_bdaddr(struct btdev *btdev)
{
return btdev->bdaddr;

View File

@ -65,7 +65,6 @@ struct btdev;
struct btdev *btdev_create(enum btdev_type type, uint16_t id);
void btdev_destroy(struct btdev *btdev);
void btdev_set_bdaddr(struct btdev *btdev, uint8_t *bdaddr);
const uint8_t *btdev_get_bdaddr(struct btdev *btdev);
void btdev_set_command_handler(struct btdev *btdev, btdev_command_func handler,