Diff between 2282c849b908d73904b3003d839b8c5e08de6976 and ef063f754e0b63880723fa8b672d71225b00b102

Changed Files

File Additions Deletions Status
src/glib-helper.c +0 -43 modified
src/glib-helper.h +0 -2 modified

Full Patch

diff --git a/src/glib-helper.c b/src/glib-helper.c
index fe5713a..310dd52 100644
--- a/src/glib-helper.c
+++ b/src/glib-helper.c
@@ -221,46 +221,3 @@ int bt_string2uuid(uuid_t *uuid, const char *string)
 		return string2uuid16(uuid, string);
 	}
 }
-
-gchar *bt_list2string(GSList *list)
-{
-	GSList *l;
-	gchar *str, *tmp;
-
-	if (!list)
-		return NULL;
-
-	str = g_strdup((const gchar *) list->data);
-
-	for (l = list->next; l; l = l->next) {
-		tmp = g_strconcat(str, " " , (const gchar *) l->data, NULL);
-		g_free(str);
-		str = tmp;
-	}
-
-	return str;
-}
-
-GSList *bt_string2list(const gchar *str)
-{
-	GSList *l = NULL;
-	gchar **uuids;
-	int i = 0;
-
-	if (!str)
-		return NULL;
-
-	/* FIXME: eglib doesn't support g_strsplit */
-	uuids = g_strsplit(str, " ", 0);
-	if (!uuids)
-		return NULL;
-
-	while (uuids[i]) {
-		l = g_slist_append(l, uuids[i]);
-		i++;
-	}
-
-	g_free(uuids);
-
-	return l;
-}
diff --git a/src/glib-helper.h b/src/glib-helper.h
index 8836804..061dfcd 100644
--- a/src/glib-helper.h
+++ b/src/glib-helper.h
@@ -24,5 +24,3 @@
 gchar *bt_uuid2string(uuid_t *uuid);
 char *bt_name2string(const char *string);
 int bt_string2uuid(uuid_t *uuid, const char *string);
-gchar *bt_list2string(GSList *list);
-GSList *bt_string2list(const gchar *str);