From 648b249a409f7a3db89dfa77b76d23bffa70f418 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 15 Nov 2012 12:43:04 +0200 Subject: [PATCH] core: Remove useless ext_get_record function --- src/profile.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/profile.c b/src/profile.c index 30d9723ff..228831264 100644 --- a/src/profile.c +++ b/src/profile.c @@ -685,23 +685,19 @@ static void ext_direct_connect(GIOChannel *io, GError *err, gpointer user_data) ext_connect(io, err, conn); } -static sdp_record_t *ext_get_record(struct ext_profile *ext) -{ - return NULL; -} - static uint32_t ext_register_record(struct ext_profile *ext, const bdaddr_t *src) { sdp_record_t *rec; - if (ext->record) - rec = sdp_xml_parse_record(ext->record, strlen(ext->record)); - else - rec = ext_get_record(ext); + if (!ext->record) + return 0; - if (!rec) + rec = sdp_xml_parse_record(ext->record, strlen(ext->record)); + if (!rec) { + error("Unable to parse record for %s", ext->name); return 0; + } if (add_record_to_server(src, rec) < 0) { error("Failed to register service record"); -- 2.47.3