chore: remove blobdir member from dc_mimeparser_t struct 🔥

dc_mimeparser_new() constructor takes both blobdir and context, but only
uses the blobdir from the context and doesn't care about parser.blobdir,
this can be removed safely since only used internally.
This commit is contained in:
Lars-Magnus Skog
2019-05-13 15:30:59 +02:00
parent db77c66c06
commit dc92166ca2
3 changed files with 3 additions and 8 deletions

View File

@@ -753,7 +753,7 @@ unsafe fn stress_functions(context: &dc_context_t) {
} else {
};
mailmime_free(mime);
let mimeparser: *mut dc_mimeparser_t = dc_mimeparser_new(context.get_blobdir(), context);
let mimeparser: *mut dc_mimeparser_t = dc_mimeparser_new(context);
let raw: *const libc::c_char =
b"Content-Type: multipart/mixed; boundary=\"==break==\";\nSubject: outer-subject\nX-Special-A: special-a\nFoo: Bar\nChat-Version: 0.0\n\n--==break==\nContent-Type: text/plain; protected-headers=\"v1\";\nSubject: inner-subject\nX-Special-B: special-b\nFoo: Xy\nChat-Version: 1.0\n\ntest1\n\n--==break==--\n\n\x00"
as *const u8 as *const libc::c_char;