From f5416b1c2cc00f0f68678fa247286f53269e9cd9 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Mon, 26 Aug 2019 20:08:05 +0000 Subject: [PATCH] Drop deprecated S_GENERATE_COMPOUND_MSGS flag There is no code that modifies this flag anyway. --- src/dc_mimeparser.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/dc_mimeparser.rs b/src/dc_mimeparser.rs index e53f96fe4..05931e309 100644 --- a/src/dc_mimeparser.rs +++ b/src/dc_mimeparser.rs @@ -61,9 +61,6 @@ pub struct dc_mimeparser_t<'a> { pub message_kml: Option, } -// deprecated: flag to switch generation of compound messages on and off. -static mut S_GENERATE_COMPOUND_MSGS: libc::c_int = 1i32; - pub unsafe fn dc_mimeparser_new(context: &Context) -> dc_mimeparser_t { dc_mimeparser_t { parts: Vec::new(), @@ -206,10 +203,7 @@ pub unsafe fn dc_mimeparser_parse<'a>(context: &'a Context, body: &[u8]) -> dc_m } } } - if mimeparser.is_send_by_messenger - && 0 != S_GENERATE_COMPOUND_MSGS - && mimeparser.parts.len() == 2 - { + if mimeparser.is_send_by_messenger && mimeparser.parts.len() == 2 { let need_drop: bool; { let textpart = &mimeparser.parts[0];