aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/storage.c29
-rw-r--r--src/storage.h1
2 files changed, 0 insertions, 30 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];
diff --git a/src/storage.h b/src/storage.h
index 7340ff73..dbe717f6 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -52,7 +52,6 @@ int read_link_key(bdaddr_t *local, bdaddr_t *peer, unsigned char *key, uint8_t *
ssize_t read_pin_code(bdaddr_t *local, bdaddr_t *peer, char *pin);
gboolean read_trust(const bdaddr_t *local, const char *addr, const char *service);
int write_trust(const char *src, const char *addr, const char *service, gboolean trust);
-GSList *list_trusts(bdaddr_t *local, const char *service);
int write_device_profiles(bdaddr_t *src, bdaddr_t *dst, const char *profiles);
int delete_entry(bdaddr_t *src, const char *storage, const char *key);
int store_record(const gchar *src, const gchar *dst, sdp_record_t *rec);