From 9f5fbcdcaee5b812d5df61b9488834d6d3292ce3 Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 11 Aug 2026 10:22:14 +0000 Subject: [PATCH] api!: remove deprecated dc_chat_is_protected() --- deltachat-ffi/deltachat.h | 11 ----------- deltachat-ffi/src/lib.rs | 5 ----- 2 files changed, 16 deletions(-) diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index 3be356ec5..bac8361e9 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -3777,17 +3777,6 @@ int dc_chat_is_device_talk (const dc_chat_t* chat); int dc_chat_can_send (const dc_chat_t* chat); -/** - * Deprecated, always returns 0. - * - * @memberof dc_chat_t - * @param chat The chat object. - * @return Always 0. - * @deprecated 2025-09-09 - */ -int dc_chat_is_protected (const dc_chat_t* chat); - - /** * Check if the chat is encrypted. * diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs index 54b75b6e1..7abd937a8 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -3046,11 +3046,6 @@ pub unsafe extern "C" fn dc_chat_can_send(chat: *mut dc_chat_t) -> libc::c_int { .unwrap_or_default() as libc::c_int } -#[unsafe(no_mangle)] -pub extern "C" fn dc_chat_is_protected(_chat: *mut dc_chat_t) -> libc::c_int { - 0 -} - #[unsafe(no_mangle)] pub unsafe extern "C" fn dc_chat_is_encrypted(chat: *mut dc_chat_t) -> libc::c_int { if chat.is_null() {