mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 00:46:31 +03:00
api!: remove dc_delete_all_locations
This commit is contained in:
@@ -459,13 +459,6 @@ fn is_marker(txt: &str) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
/// Deletes all locations from the database.
|
||||
pub async fn delete_all(context: &Context) -> Result<()> {
|
||||
context.sql.execute("DELETE FROM locations;", ()).await?;
|
||||
context.emit_location_changed(None).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Deletes expired locations.
|
||||
///
|
||||
/// Only path locations are deleted.
|
||||
|
||||
Reference in New Issue
Block a user