It is doing nothing now and can be removed. --- src/adapter.c | 2 -- src/sdpd-database.c | 21 --------------------- src/sdpd.h | 2 -- 3 files changed, 25 deletions(-) diff --git a/src/adapter.c b/src/adapter.c index 0ec1381..4a20df5 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -5613,8 +5613,6 @@ static int adapter_register(struct btd_adapter *adapter) agent_unref(agent); } - sdp_init_services_list(&adapter->bdaddr); - btd_adapter_gatt_server_start(adapter); load_config(adapter); diff --git a/src/sdpd-database.c b/src/sdpd-database.c index e4d4f98..f65a526 100644 --- a/src/sdpd-database.c +++ b/src/sdpd-database.c @@ -296,24 +296,3 @@ uint32_t sdp_next_handle(void) return handle; } - -void sdp_init_services_list(bdaddr_t *device) -{ - sdp_list_t *p; - - DBG(""); - - for (p = access_db; p != NULL; p = p->next) { - sdp_access_t *access = p->data; - sdp_record_t *rec; - - if (bacmp(BDADDR_ANY, &access->device)) - continue; - - rec = sdp_record_find(access->handle); - if (rec == NULL) - continue; - - SDPDBG("adding record with handle %x", access->handle); - } -} diff --git a/src/sdpd.h b/src/sdpd.h index 28d7f6d..77cafbd 100644 --- a/src/sdpd.h +++ b/src/sdpd.h @@ -79,5 +79,3 @@ void stop_sdp_server(void); int add_record_to_server(const bdaddr_t *src, sdp_record_t *rec); int remove_record_from_server(uint32_t handle); - -void sdp_init_services_list(bdaddr_t *device); -- 1.8.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html