Diff between dcf950ab93c3570336d235270cd947772a2fb762 and 67fbf83a6fc0d9a241abdd61be3430a2dd92498b

Changed Files

File Additions Deletions Status
src/storage.c +0 -32 modified
src/storage.h +0 -2 modified

Full Patch

diff --git a/src/storage.c b/src/storage.c
index 4dc2d17..297aba7 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -435,38 +435,6 @@ done:
 	return 0;
 }
 
-int write_features_info(const bdaddr_t *local, const bdaddr_t *peer,
-				unsigned char *page1, unsigned char *page2)
-{
-	char filename[PATH_MAX + 1], addr[18];
-	char str[] = "0000000000000000 0000000000000000";
-	char *old_value;
-	int i;
-
-	ba2str(peer, addr);
-
-	create_filename(filename, PATH_MAX, local, "features");
-	create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
-
-	old_value = textfile_get(filename, addr);
-
-	if (page1)
-		for (i = 0; i < 8; i++)
-			sprintf(str + (i * 2), "%2.2X", page1[i]);
-	else if (old_value && strlen(old_value) >= 16)
-		strncpy(str, old_value, 16);
-
-	if (page2)
-		for (i = 0; i < 8; i++)
-			sprintf(str + 17 + (i * 2), "%2.2X", page2[i]);
-	else if (old_value && strlen(old_value) >= 33)
-		strncpy(str + 17, old_value + 17, 16);
-
-	free(old_value);
-
-	return textfile_put(filename, addr, str);
-}
-
 static int decode_bytes(const char *str, unsigned char *bytes, size_t len)
 {
 	unsigned int i;
diff --git a/src/storage.h b/src/storage.h
index e19e67f..8293ba8 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -50,8 +50,6 @@ int write_device_name(const bdaddr_t *local, const bdaddr_t *peer,
 					uint8_t peer_type, const char *name);
 int read_device_name(const char *src, const char *dst, uint8_t dst_type,
 								char *name);
-int write_features_info(const bdaddr_t *local, const bdaddr_t *peer,
-				unsigned char *page1, unsigned char *page2);
 int read_remote_features(const bdaddr_t *local, const bdaddr_t *peer,
 				unsigned char *page1, unsigned char *page2);
 int write_lastseen_info(const bdaddr_t *local, const bdaddr_t *peer,