summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-service.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-01-19 21:03:53 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-01-19 21:03:53 +0000
commit6d6b1e82f0f3c51254417264aa70b417f7ad3e7a (patch)
treec4ff2cff015b5db56805fb39f8eccceec846695d /hcid/dbus-service.c
parent2f8c48d48529b951e514be6541f272c0ecca48a7 (diff)
Remove unused register_service_records function
Diffstat (limited to 'hcid/dbus-service.c')
-rw-r--r--hcid/dbus-service.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c
index b319b2be..2a756cbb 100644
--- a/hcid/dbus-service.c
+++ b/hcid/dbus-service.c
@@ -133,28 +133,6 @@ static void service_free(struct service *service)
free(service);
}
-int register_service_records(GSList *lrecords)
-{
- while (lrecords) {
- struct binary_record *rec = lrecords->data;
- lrecords = lrecords->next;
- uint32_t handle = 0;
-
- if (!rec || !rec->buf || rec->handle != 0xffffffff)
- continue;
-
- if (register_sdp_record(rec->buf->data, rec->buf->data_size, &handle) < 0) {
- /* FIXME: If just one of the service record registration fails */
- error("Service Record registration failed:(%s, %d)",
- strerror(errno), errno);
- }
-
- rec->handle = handle;
- }
-
- return 0;
-}
-
static int unregister_service_records(GSList *lrecords)
{
while (lrecords) {
@@ -1003,4 +981,3 @@ int init_services(const char *path)
return 0;
}
-