From 41b9a011afdd2cb78db214aeb502a418e31fae0a Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 19 Dec 2012 10:31:54 +0200 Subject: [PATCH] network: Remove unused bnep_service_id function --- profiles/network/common.c | 25 ------------------------- profiles/network/common.h | 1 - 2 files changed, 26 deletions(-) diff --git a/profiles/network/common.c b/profiles/network/common.c index 34ab7888d..5a361703e 100644 --- a/profiles/network/common.c +++ b/profiles/network/common.c @@ -59,31 +59,6 @@ static struct { { NULL } }; -uint16_t bnep_service_id(const char *svc) -{ - int i; - uint16_t id; - - /* Friendly service name */ - for (i = 0; __svc[i].name; i++) - if (!strcasecmp(svc, __svc[i].name)) { - return __svc[i].id; - } - - /* UUID 128 string */ - for (i = 0; __svc[i].uuid128; i++) - if (!strcasecmp(svc, __svc[i].uuid128)) { - return __svc[i].id; - } - - /* Try convert to HEX */ - id = strtol(svc, NULL, 16); - if ((id < BNEP_SVC_PANU) || (id > BNEP_SVC_GN)) - return 0; - - return id; -} - const char *bnep_uuid(uint16_t id) { int i; diff --git a/profiles/network/common.h b/profiles/network/common.h index 0a8c4feea..682dab6ed 100644 --- a/profiles/network/common.h +++ b/profiles/network/common.h @@ -24,7 +24,6 @@ int bnep_init(void); int bnep_cleanup(void); -uint16_t bnep_service_id(const char *svc); const char *bnep_uuid(uint16_t id); const char *bnep_name(uint16_t id); -- 2.47.3