mirror of
https://github.com/chatmail/core.git
synced 2026-05-01 20:36:31 +03:00
chore: cleanup deprecated functions/defines (#7763)
this PR cleans up with some easy, deprecated stuff. i roughly checked that they are no longer in use - by these checks, other deprecated function were kept, eg. dc_provider_new_from_email_with_dns() and dc_chat_is_protected() is still used by deltatouch - to not add noise there, we remove them here on the next cleanup ... for DC_STR_*, however, if they are in used, the corresponding lines should just be removed this will cleanup https://c.delta.chat/deprecated.html as well
This commit is contained in:
@@ -2260,22 +2260,6 @@ pub unsafe extern "C" fn dc_get_contacts(
|
||||
})
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn dc_get_blocked_cnt(context: *mut dc_context_t) -> libc::c_int {
|
||||
if context.is_null() {
|
||||
eprintln!("ignoring careless call to dc_get_blocked_cnt()");
|
||||
return 0;
|
||||
}
|
||||
let ctx = &*context;
|
||||
|
||||
block_on(async move {
|
||||
Contact::get_all_blocked(ctx)
|
||||
.await
|
||||
.unwrap_or_log_default(ctx, "failed to get blocked count")
|
||||
.len() as libc::c_int
|
||||
})
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn dc_get_blocked_contacts(
|
||||
context: *mut dc_context_t,
|
||||
|
||||
Reference in New Issue
Block a user