Remove drop accounts function.

This commit is contained in:
Kevin Gorham 2021-05-07 04:18:45 -04:00
parent 3828a814b5
commit bd65b01eb3
No known key found for this signature in database
GPG Key ID: CCA55602DF49FC38
1 changed files with 0 additions and 11 deletions

View File

@ -209,17 +209,6 @@ pub fn init_accounts_table<P: consensus::Parameters>(
Ok(())
}
pub fn drop_accounts_table<P: consensus::Parameters>(
wdb: &WalletDb<P>,
) -> Result<(), SqliteClientError> {
wdb.conn.execute_batch(
"PRAGMA foreign_keys = OFF; DROP TABLE accounts; PRAGMA foreign_keys = ON;"
)?;
Ok(())
}
/// Initialises the data database with the given block.
///
/// This enables a newly-created database to be immediately-usable, without needing to