From cc6ce72f6e97fdcfdb2462ebf920df823e0d6405 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Thu, 16 Apr 2020 21:48:51 +0200 Subject: [PATCH] remove unused dc_get_version_str() api --- deltachat-ffi/deltachat.h | 1 - deltachat-ffi/src/lib.rs | 5 ----- 2 files changed, 6 deletions(-) diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index bbaf3ecc1..39963644b 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -4537,7 +4537,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 -char* dc_get_version_str (void); // deprecated 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 664866300..86fe8a651 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -484,11 +484,6 @@ pub unsafe extern "C" fn dc_get_oauth2_url( .unwrap_or_else(|_| ptr::null_mut()) } -#[no_mangle] -pub unsafe extern "C" fn dc_get_version_str() -> *mut libc::c_char { - context::get_version_str().strdup() -} - #[no_mangle] pub unsafe extern "C" fn dc_configure(context: *mut dc_context_t) { if context.is_null() {