2023-09-28 20:16:49

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: [PATCH BlueZ 2/2] shared/csip: Remove bt_csip_add_db

From: Luiz Augusto von Dentz <[email protected]>

bt_csip_add_db is unused since csip plugin does use bt_csip_new to
properly create the attributes for CSIS.
---
src/shared/csip.c | 5 -----
1 file changed, 5 deletions(-)

diff --git a/src/shared/csip.c b/src/shared/csip.c
index 7e90a3c97614..04a8d542b390 100644
--- a/src/shared/csip.c
+++ b/src/shared/csip.c
@@ -389,11 +389,6 @@ static struct bt_csip_db *csip_get_db(struct gatt_db *db)
return csip_db_new(db);
}

-void bt_csip_add_db(struct gatt_db *db)
-{
- csip_db_new(db);
-}
-
bool bt_csip_set_debug(struct bt_csip *csip, bt_csip_debug_func_t func,
void *user_data, bt_csip_destroy_func_t destroy)
{
--
2.41.0