From 8b88bfd3fa83dadd55200e92cd87ae804abffc7e Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 7 Jan 2013 16:19:59 +0200 Subject: [PATCH] core: Remove unused read_device_pairable function --- src/storage.c | 17 ----------------- src/storage.h | 1 - 2 files changed, 18 deletions(-) diff --git a/src/storage.c b/src/storage.c index 28abeb355..8b634ba2b 100644 --- a/src/storage.c +++ b/src/storage.c @@ -196,20 +196,3 @@ sdp_record_t *find_record_in_list(sdp_list_t *recs, const char *uuid) } return NULL; } - -int read_device_pairable(const bdaddr_t *bdaddr, gboolean *mode) -{ - char filename[PATH_MAX + 1], *str; - - create_filename(filename, PATH_MAX, bdaddr, "config"); - - str = textfile_get(filename, "pairable"); - if (!str) - return -ENOENT; - - *mode = strcmp(str, "yes") == 0 ? TRUE : FALSE; - - free(str); - - return 0; -} diff --git a/src/storage.h b/src/storage.h index 53e9834f4..4c5ab50f0 100644 --- a/src/storage.h +++ b/src/storage.h @@ -29,4 +29,3 @@ int read_on_mode(const char *src, char *mode, int length); int read_local_name(const bdaddr_t *bdaddr, char *name); sdp_record_t *record_from_string(const char *str); sdp_record_t *find_record_in_list(sdp_list_t *recs, const char *uuid); -int read_device_pairable(const bdaddr_t *local, gboolean *mode); -- 2.47.3