Diff between 12ea3fe7e2628d564e27843762f1cf613b821582 and 76ac7c0f8fd7a477066fe4550a5d559e1f08a6e1

Changed Files

File Additions Deletions Status
src/storage.c +0 -25 modified
src/storage.h +0 -4 modified

Full Patch

diff --git a/src/storage.c b/src/storage.c
index c622ff1..a498f73 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -412,31 +412,6 @@ char *read_device_characteristics(const bdaddr_t *sba, const bdaddr_t *dba,
 	return textfile_caseget(filename, key);
 }
 
-int write_device_attribute(const bdaddr_t *sba, const bdaddr_t *dba,
-				uint8_t bdaddr_type, uint16_t handle,
-							const char *chars)
-{
-	char filename[PATH_MAX + 1], addr[18], key[25];
-
-	create_filename(filename, PATH_MAX, sba, "attributes");
-
-	create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
-
-	ba2str(dba, addr);
-	snprintf(key, sizeof(key), "%17s#%hhu#%04X", addr, bdaddr_type, handle);
-
-	return textfile_put(filename, key, chars);
-}
-
-int read_device_attributes(const bdaddr_t *sba, textfile_cb func, void *data)
-{
-	char filename[PATH_MAX + 1];
-
-	create_filename(filename, PATH_MAX, sba, "attributes");
-
-	return textfile_foreach(filename, func, data);
-}
-
 int read_device_ccc(const bdaddr_t *local, const bdaddr_t *peer,
 					uint8_t bdaddr_type, uint16_t handle,
 					uint16_t *value)
diff --git a/src/storage.h b/src/storage.h
index e26753a..7e91f9a 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -47,10 +47,6 @@ int write_device_characteristics(const bdaddr_t *sba, const bdaddr_t *dba,
 							     const char *chars);
 char *read_device_characteristics(const bdaddr_t *sba, const bdaddr_t *dba,
 					uint8_t bdaddr_type, uint16_t handle);
-int write_device_attribute(const bdaddr_t *sba, const bdaddr_t *dba,
-				uint8_t bdaddr_type, uint16_t handle,
-							const char *chars);
-int read_device_attributes(const bdaddr_t *sba, textfile_cb func, void *data);
 int read_device_ccc(const bdaddr_t *local, const bdaddr_t *peer,
 			uint8_t bdaddr_type, uint16_t handle, uint16_t *value);
 int write_device_ccc(const bdaddr_t *local, const bdaddr_t *peer,