Drop deprecated S_GENERATE_COMPOUND_MSGS flag

There is no code that modifies this flag anyway.
This commit is contained in:
Dmitry Bogatov
2019-08-26 20:08:05 +00:00
committed by Floris Bruynooghe
parent a9f42f7a9e
commit f5416b1c2c

View File

@@ -61,9 +61,6 @@ pub struct dc_mimeparser_t<'a> {
pub message_kml: Option<location::Kml>,
}
// 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];