From 3544e331a423fab0f3d950217cec34b0796c9774 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 14 Dec 2012 11:38:52 +0200 Subject: [PATCH] core: Remove unused write_lastused_info function --- src/storage.c | 18 ------------------ src/storage.h | 2 -- 2 files changed, 20 deletions(-) diff --git a/src/storage.c b/src/storage.c index 0cd8b737e..6a2bf73cc 100644 --- a/src/storage.c +++ b/src/storage.c @@ -207,24 +207,6 @@ int write_remote_appearance(const bdaddr_t *local, const bdaddr_t *peer, return textfile_put(filename, key, str); } -int write_lastused_info(const bdaddr_t *local, const bdaddr_t *peer, - uint8_t peer_type, struct tm *tm) -{ - char filename[PATH_MAX + 1], key[20], str[24]; - - memset(str, 0, sizeof(str)); - strftime(str, sizeof(str), "%Y-%m-%d %H:%M:%S %Z", tm); - - create_filename(filename, PATH_MAX, local, "lastused"); - - create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); - - ba2str(peer, key); - sprintf(&key[17], "#%hhu", peer_type); - - return textfile_put(filename, key, str); -} - ssize_t read_pin_code(const bdaddr_t *local, const bdaddr_t *peer, char *pin) { char filename[PATH_MAX + 1], addr[18], *str; diff --git a/src/storage.h b/src/storage.h index 7b6bad986..984370468 100644 --- a/src/storage.h +++ b/src/storage.h @@ -32,8 +32,6 @@ int write_remote_appearance(const bdaddr_t *local, const bdaddr_t *peer, uint8_t bdaddr_type, uint16_t appearance); int read_remote_appearance(const bdaddr_t *local, const bdaddr_t *peer, uint8_t bdaddr_type, uint16_t *appearance); -int write_lastused_info(const bdaddr_t *local, const bdaddr_t *peer, - uint8_t peer_type, struct tm *tm); ssize_t read_pin_code(const bdaddr_t *local, const bdaddr_t *peer, char *pin); sdp_record_t *record_from_string(const gchar *str); sdp_record_t *find_record_in_list(sdp_list_t *recs, const char *uuid); -- 2.47.3