From 4fc17349171e0917048fcba107a67bc374888af0 Mon Sep 17 00:00:00 2001 From: Pavel Vasilyev Date: Thu, 24 Aug 2023 13:33:22 +0200 Subject: [PATCH] Bluetooth: Mesh: Remove bt_mesh_beacon_priv_random_get as unused This function is not used anywhere. Signed-off-by: Pavel Vasilyev --- subsys/bluetooth/mesh/beacon.c | 6 ------ subsys/bluetooth/mesh/beacon.h | 1 - 2 files changed, 7 deletions(-) diff --git a/subsys/bluetooth/mesh/beacon.c b/subsys/bluetooth/mesh/beacon.c index e77302e58ce..8c0ac3b54e9 100644 --- a/subsys/bluetooth/mesh/beacon.c +++ b/subsys/bluetooth/mesh/beacon.c @@ -794,9 +794,3 @@ void bt_mesh_beacon_disable(void) /* If this fails, we'll do an early exit in the work handler. */ (void)k_work_cancel_delayable(&beacon_timer); } - -void bt_mesh_beacon_priv_random_get(uint8_t *random, size_t size) -{ - __ASSERT(size <= sizeof(priv_random.val), "Invalid random value size %u", size); - memcpy(random, priv_random.val, size); -} diff --git a/subsys/bluetooth/mesh/beacon.h b/subsys/bluetooth/mesh/beacon.h index 7efebde167c..0e38ab012a3 100644 --- a/subsys/bluetooth/mesh/beacon.h +++ b/subsys/bluetooth/mesh/beacon.h @@ -15,4 +15,3 @@ int bt_mesh_beacon_create(struct bt_mesh_subnet *sub, struct net_buf_simple *buf void bt_mesh_beacon_init(void); void bt_mesh_beacon_update(struct bt_mesh_subnet *sub); -void bt_mesh_beacon_priv_random_get(uint8_t *random, size_t size);