summaryrefslogtreecommitdiff
path: root/src/storage.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2011-09-15 16:32:21 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2011-09-16 11:33:11 +0300
commit47c48729ccd033a1f8fbac84f5f62100e25e9f04 (patch)
treee0459b2e1a131c6ebf983171f7b84f3d6a519bba /src/storage.c
parent2a39f5f3421b66ef6fc6576014007853f8dbffe5 (diff)
Remove not referenced function in storage.c
Diffstat (limited to 'src/storage.c')
-rw-r--r--src/storage.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/storage.c b/src/storage.c
index 8d3a39d4..85cfed89 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -732,35 +732,6 @@ gboolean read_trust(const bdaddr_t *local, const char *addr, const char *service
return ret;
}
-struct trust_list {
- GSList *trusts;
- const char *service;
-};
-
-static void append_trust(char *key, char *value, void *data)
-{
- struct trust_list *list = data;
-
- if (strstr(value, list->service))
- list->trusts = g_slist_append(list->trusts, g_strdup(key));
-}
-
-GSList *list_trusts(bdaddr_t *local, const char *service)
-{
- char filename[PATH_MAX + 1];
- struct trust_list list;
-
- create_filename(filename, PATH_MAX, local, "trusts");
-
- list.trusts = NULL;
- list.service = service;
-
- if (textfile_foreach(filename, append_trust, &list) < 0)
- return NULL;
-
- return list.trusts;
-}
-
int write_device_profiles(bdaddr_t *src, bdaddr_t *dst, const char *profiles)
{
char filename[PATH_MAX + 1], addr[18];