aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage.c')
-rw-r--r--src/storage.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/storage.c b/src/storage.c
index 1f3da6e0..85118230 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -1303,41 +1303,3 @@ int read_device_attributes(const bdaddr_t *sba, textfile_cb func, void *data)
return textfile_foreach(filename, func, data);
}
-
-int write_device_type(const bdaddr_t *sba, const bdaddr_t *dba,
- device_type_t type)
-{
- char filename[PATH_MAX + 1], addr[18], chars[3];
-
- create_filename(filename, PATH_MAX, sba, "types");
-
- create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
-
- ba2str(dba, addr);
-
- snprintf(chars, sizeof(chars), "%2.2X", type);
-
- return textfile_put(filename, addr, chars);
-}
-
-device_type_t read_device_type(const bdaddr_t *sba, const bdaddr_t *dba)
-{
- char filename[PATH_MAX + 1], addr[18], *chars;
- device_type_t type;
-
- create_filename(filename, PATH_MAX, sba, "types");
-
- create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
-
- ba2str(dba, addr);
-
- chars = textfile_caseget(filename, addr);
- if (chars == NULL)
- return DEVICE_TYPE_UNKNOWN;
-
- type = strtol(chars, NULL, 16);
-
- free(chars);
-
- return type;
-}