summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2012-10-09 14:11:59 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-10-09 18:37:39 +0200
commit67fbf83a6fc0d9a241abdd61be3430a2dd92498b (patch)
treef480bb3e67af900093567b5210ab5a5692947858 /src
parentdcf950ab93c3570336d235270cd947772a2fb762 (diff)
storage: Remove not used write_features_info
This was used in hciops.
Diffstat (limited to 'src')
-rw-r--r--src/storage.c32
-rw-r--r--src/storage.h2
2 files changed, 0 insertions, 34 deletions
diff --git a/src/storage.c b/src/storage.c
index 4dc2d172..297aba76 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 e19e67f9..8293ba8b 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,