mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 22:36:30 +03:00
api: remove unused dc_accounts_all_work_done() (#5384)
it was used by iOS to know when a background fetch was complete; meanwhile the superiour `dc_accounts_background_fetch()` is used for that. there is still the corresponding context function `dc_all_work_done()`, this not used by any UI as well, however, it is in use by a python tests. not sure, what to do with it, at a first glance, the test still seems useful.
This commit is contained in:
@@ -4851,16 +4851,6 @@ pub unsafe extern "C" fn dc_accounts_get_all(accounts: *mut dc_accounts_t) -> *m
|
||||
Box::into_raw(Box::new(array))
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn dc_accounts_all_work_done(accounts: *mut dc_accounts_t) -> libc::c_int {
|
||||
if accounts.is_null() {
|
||||
eprintln!("ignoring careless call to dc_accounts_all_work_done()");
|
||||
return 0;
|
||||
}
|
||||
let accounts = &*accounts;
|
||||
block_on(async move { accounts.read().await.all_work_done().await as libc::c_int })
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn dc_accounts_start_io(accounts: *mut dc_accounts_t) {
|
||||
if accounts.is_null() {
|
||||
|
||||
Reference in New Issue
Block a user