diff mbox series

[v2,2/2] shared/csip: Remove bt_csip_add_db

Message ID 20230928203856.2100456-2-luiz.dentz@gmail.com (mailing list archive)
State Accepted
Commit ae9bf50a27922f2f62a465b62800e90f0fba7831
Headers show
Series [v2,1/2] csip: Fix not registering CSIS service | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS
tedd_an/IncrementalBuild success Incremental Build PASS

Commit Message

Luiz Augusto von Dentz Sept. 28, 2023, 8:38 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

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 -----
 src/shared/csip.h | 2 --
 2 files changed, 7 deletions(-)
diff mbox series

Patch

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)
 {
diff --git a/src/shared/csip.h b/src/shared/csip.h
index 0f8acb1cae82..bc5519cfbc49 100644
--- a/src/shared/csip.h
+++ b/src/shared/csip.h
@@ -36,8 +36,6 @@  typedef bool (*bt_csip_sirk_func_t)(struct bt_csip *csip, uint8_t type,
 struct bt_csip *bt_csip_ref(struct bt_csip *csip);
 void bt_csip_unref(struct bt_csip *csip);
 
-void bt_csip_add_db(struct gatt_db *db);
-
 bool bt_csip_attach(struct bt_csip *csip, struct bt_gatt_client *client);
 void bt_csip_detach(struct bt_csip *csip);