remove Database::flush

This commit is contained in:
KaFai Choi
2022-03-23 10:58:05 +07:00
committed by KaFai Choi
parent 17d0ae0f71
commit e68d3b9e63
6 changed files with 1 additions and 23 deletions

View File

@@ -158,13 +158,6 @@ pub trait Database: BatchOperations {
///
/// It should insert and return `0` if not present in the database
fn increment_last_index(&mut self, keychain: KeychainKind) -> Result<u32, Error>;
#[deprecated(
since = "0.18.0",
note = "The flush function is only needed for the sled database on mobile, instead for mobile use the sqlite database."
)]
/// Force changes to be written to disk
fn flush(&mut self) -> Result<(), Error>;
}
/// Trait for a database that supports batch operations