Remove dc_array_get_raw

It does not work with typed arrays, such as locations and messages.

Use dc_array_get_id in a loop instead.
This commit is contained in:
Alexander Krotov
2020-06-24 22:09:34 +03:00
committed by link2xt
parent 09833eb74d
commit 42f6a7c77c
3 changed files with 0 additions and 29 deletions

View File

@@ -2049,16 +2049,6 @@ pub unsafe extern "C" fn dc_array_search_id(
}
}
#[no_mangle]
pub unsafe extern "C" fn dc_array_get_raw(array: *const dc_array_t) -> *const u32 {
if array.is_null() {
eprintln!("ignoring careless call to dc_array_get_raw()");
return ptr::null_mut();
}
(*array).as_ptr()
}
// Return the independent-state of the location at the given index.
// Independent locations do not belong to the track of the user.
// Returns 1 if location belongs to the track of the user,