From e2d74dc8e943b7e62c2c099fe95caf66462b6b4c Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 4 Jan 2013 14:33:37 +0200 Subject: [PATCH] core: Remove unused mgmt_read_bdaddr function --- src/mgmt.c | 16 ---------------- src/mgmt.h | 1 - 2 files changed, 17 deletions(-) diff --git a/src/mgmt.c b/src/mgmt.c index caaf2f654..39c6abf62 100644 --- a/src/mgmt.c +++ b/src/mgmt.c @@ -2328,22 +2328,6 @@ int mgmt_read_clock(int index, const bdaddr_t *bdaddr, int which, int timeout, return -ENOSYS; } -int mgmt_read_bdaddr(int index, bdaddr_t *bdaddr) -{ - char addr[18]; - struct controller_info *info = &controllers[index]; - - ba2str(&info->bdaddr, addr); - DBG("index %d addr %s", index, addr); - - if (!info->valid) - return -ENODEV; - - bacpy(bdaddr, &info->bdaddr); - - return 0; -} - int mgmt_block_device(int index, const bdaddr_t *bdaddr, uint8_t bdaddr_type) { char buf[MGMT_HDR_SIZE + sizeof(struct mgmt_cp_block_device)]; diff --git a/src/mgmt.h b/src/mgmt.h index 1ea84885f..17f2f492a 100644 --- a/src/mgmt.h +++ b/src/mgmt.h @@ -39,7 +39,6 @@ int mgmt_stop_discovery(int index); int mgmt_read_clock(int index, const bdaddr_t *bdaddr, int which, int timeout, uint32_t *clock, uint16_t *accuracy); -int mgmt_read_bdaddr(int index, bdaddr_t *bdaddr); int mgmt_block_device(int index, const bdaddr_t *bdaddr, uint8_t bdaddr_type); int mgmt_unblock_device(int index, const bdaddr_t *bdaddr, uint8_t bdaddr_type); -- 2.47.3