diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-12-14 11:37:45 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-12-14 11:37:45 +0200 |
commit | 2aca6e0058e8b3cf190a0b492c6540e0a3cacfd9 (patch) | |
tree | 56fed782594efeea87645016bb6fb9a7fffeea40 /src/storage.c | |
parent | 1fb9e57736856f7e069a9d7ec9c6c53f687caf9f (diff) | |
download | bluez-2aca6e0058e8b3cf190a0b492c6540e0a3cacfd9.tar.gz |
core: Remove unused delete_record function
Diffstat (limited to 'src/storage.c')
-rw-r--r-- | src/storage.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/storage.c b/src/storage.c index 5b5b3d513..0cd8b737e 100644 --- a/src/storage.c +++ b/src/storage.c @@ -267,31 +267,6 @@ sdp_record_t *record_from_string(const gchar *str) return rec; } - -int delete_record(const gchar *src, const gchar *dst, uint8_t dst_type, - const uint32_t handle) -{ - char filename[PATH_MAX + 1], old_key[28], key[30]; - int err, ret; - - create_name(filename, PATH_MAX, STORAGEDIR, src, "sdp"); - - snprintf(key, sizeof(key), "%17s#%hhu#%08X", dst, dst_type, handle); - snprintf(old_key, sizeof(old_key), "%17s#%08X", dst, handle); - - err = 0; - ret = textfile_del(filename, key); - if (ret) - err = ret; - - /* Try old format (address#handle) */ - ret = textfile_del(filename, old_key); - if (ret) - err = ret; - - return err; -} - sdp_record_t *find_record_in_list(sdp_list_t *recs, const char *uuid) { sdp_list_t *seq; |