api!: remove dc_delete_all_locations

This commit is contained in:
link2xt
2026-04-24 21:41:29 +02:00
committed by l
parent c17d067a1a
commit 1ab6645bbc
6 changed files with 3 additions and 47 deletions

View File

@@ -2626,23 +2626,6 @@ pub unsafe extern "C" fn dc_get_locations(
})
}
#[no_mangle]
pub unsafe extern "C" fn dc_delete_all_locations(context: *mut dc_context_t) {
if context.is_null() {
eprintln!("ignoring careless call to dc_delete_all_locations()");
return;
}
let ctx = &*context;
block_on(async move {
location::delete_all(ctx)
.await
.context("Failed to delete locations")
.log_err(ctx)
.ok()
});
}
#[no_mangle]
pub unsafe extern "C" fn dc_create_qr_svg(payload: *const libc::c_char) -> *mut libc::c_char {
if payload.is_null() {