Diff between 8b1c207d0f8dcd740c5886cdc8fcd497a7231954 and 41b9a011afdd2cb78db214aeb502a418e31fae0a

Changed Files

File Additions Deletions Status
profiles/network/common.c +0 -25 modified
profiles/network/common.h +0 -1 modified

Full Patch

diff --git a/profiles/network/common.c b/profiles/network/common.c
index 34ab788..5a36170 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 0a8c4fe..682dab6 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);