OSDN Git Service

core: Remove not needed sdp_init_services_list function
authorSzymon Janc <szymon.janc@tieto.com>
Thu, 19 Sep 2013 14:00:44 +0000 (16:00 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 23 Sep 2013 07:46:20 +0000 (10:46 +0300)
It is doing nothing now and can be removed.

src/adapter.c
src/sdpd-database.c
src/sdpd.h

index c48a4fc..40a9c4e 100644 (file)
@@ -5623,8 +5623,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);
index e4d4f98..f65a526 100644 (file)
@@ -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);
-       }
-}
index 9a0e1e9..6de0af7 100644 (file)
@@ -81,5 +81,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);