mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 15:26:30 +03:00
remove unused dc_array_add_id() api
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## UNRELEASED
|
## 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
|
## 1.28.0
|
||||||
|
|||||||
@@ -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_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_INT(e) ((e)==DC_EVENT_IS_OFFLINE) // not used anymore
|
||||||
#define DC_EVENT_RETURNS_STRING(e) ((e)==DC_EVENT_GET_STRING) // 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_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
|
#define dc_chat_get_archived(a) (dc_chat_get_visibility((a))==1? 1 : 0) // not used anymore
|
||||||
|
|
||||||
|
|||||||
@@ -2099,16 +2099,6 @@ pub unsafe extern "C" fn dc_array_unref(a: *mut dc_array::dc_array_t) {
|
|||||||
Box::from_raw(a);
|
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]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_array_get_cnt(array: *const dc_array_t) -> libc::size_t {
|
pub unsafe extern "C" fn dc_array_get_cnt(array: *const dc_array_t) -> libc::size_t {
|
||||||
if array.is_null() {
|
if array.is_null() {
|
||||||
|
|||||||
Reference in New Issue
Block a user