remove duplicate method
This commit is contained in:
parent
32a3b5a020
commit
4c8ceeb809
@ -207,12 +207,6 @@ delete from media where fname=?"
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub(super) fn clear(&mut self) -> Result<()> {
|
||||
self.db
|
||||
.execute_batch("delete from media; update meta set lastUsn = 0, dirMod = 0")
|
||||
.map_err(Into::into)
|
||||
}
|
||||
|
||||
pub(super) fn count(&mut self) -> Result<u32> {
|
||||
self.db
|
||||
.query_row(
|
||||
|
@ -94,11 +94,6 @@ impl MediaManager {
|
||||
Ok(chosen_fname)
|
||||
}
|
||||
|
||||
// forceResync
|
||||
pub fn clear(&mut self) -> Result<()> {
|
||||
self.dbctx().transact(|ctx| ctx.clear())
|
||||
}
|
||||
|
||||
fn dbctx(&self) -> MediaDatabaseContext {
|
||||
MediaDatabaseContext::new(&self.db)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user