From e1903edd04e1f4293b4812f3f5b28763630fbe6c Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Thu, 16 Apr 2020 22:11:54 +0200 Subject: [PATCH] remove unused dc_array_add_id() api --- CHANGELOG.md | 2 +- deltachat-ffi/deltachat.h | 1 - deltachat-ffi/src/lib.rs | 10 ---------- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0468cd6fc..b06133e37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## UNRELEASED -- removed api: dc_chat_get_subtitle(), dc_get_version_str() +- removed api: dc_chat_get_subtitle(), dc_get_version_str(), dc_array_add_id() ## 1.28.0 diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index afe2bc213..a6f517b9b 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -4524,7 +4524,6 @@ int64_t dc_lot_get_timestamp (const dc_lot_t* lot); #define DC_EVENT_DATA2_IS_STRING(e) ((e)>=100 && (e)<=499) #define DC_EVENT_RETURNS_INT(e) ((e)==DC_EVENT_IS_OFFLINE) // not used anymore #define DC_EVENT_RETURNS_STRING(e) ((e)==DC_EVENT_GET_STRING) // not used anymore -void dc_array_add_id (dc_array_t*, uint32_t); // deprecated #define dc_archive_chat(a,b,c) dc_set_chat_visibility((a), (b), (c)? 1 : 0) // not used anymore #define dc_chat_get_archived(a) (dc_chat_get_visibility((a))==1? 1 : 0) // not used anymore diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs index 8dd8e11f0..f32f95e26 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -2099,16 +2099,6 @@ pub unsafe extern "C" fn dc_array_unref(a: *mut dc_array::dc_array_t) { Box::from_raw(a); } -#[no_mangle] -pub unsafe extern "C" fn dc_array_add_id(array: *mut dc_array_t, item: libc::c_uint) { - if array.is_null() { - eprintln!("ignoring careless call to dc_array_add_id()"); - return; - } - - (*array).add_id(item); -} - #[no_mangle] pub unsafe extern "C" fn dc_array_get_cnt(array: *const dc_array_t) -> libc::size_t { if array.is_null() {