From 145991e6ebb33dc59a90b672f043888018c10151 Mon Sep 17 00:00:00 2001 From: armink Date: Sun, 28 Jun 2020 00:19:42 +0800 Subject: [PATCH] [fdb] remove unused function. --- src/fdb.c | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/src/fdb.c b/src/fdb.c index b38d105..5bc3f19 100644 --- a/src/fdb.c +++ b/src/fdb.c @@ -16,39 +16,6 @@ #define FDB_LOG_TAG "" -/** - * Set database lock and unlock funtion. - * - * @param db database object - * @param lock lock function - * @param unlock lock function - */ -void fdb_lock_set(fdb_db_t db, void (*lock)(fdb_db_t db), void (*unlock)(fdb_db_t db)) -{ - FDB_ASSERT(db); - - db->lock = lock; - db->unlock = unlock; -} - -/** - * Set the sector size for database. - * - * @note The sector size MUST align by partition block size. - * @note The sector size change MUST before database initialization. - * - * @param db database object - * @param sec_size - */ -void fdb_sec_size_set(fdb_db_t db, uint32_t sec_size) -{ - FDB_ASSERT(db); - /* the sector size change MUST before database initialization */ - FDB_ASSERT(db->init_ok == false); - - db->sec_size = sec_size; -} - fdb_err_t _fdb_init_ex(fdb_db_t db, const char *name, const char *part_name, fdb_db_type type, void *user_data) { size_t block_size;