mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-03-14 03:25:15 +01:00
show: Remove some dead code from show_text_part_content
Now that this function registers an internal error if called with a non-text part, we can remove the conditions for multipart and message-part content types.
This commit is contained in:
parent
10a48e0566
commit
f744b050b1
1 changed files with 0 additions and 4 deletions
|
@ -393,10 +393,6 @@ show_text_part_content (GMimeObject *part, GMimeStream *stream_out)
|
|||
INTERNAL_ERROR ("Illegal request to format non-text part (%s) as text.",
|
||||
g_mime_content_type_to_string (content_type));
|
||||
|
||||
/* do nothing if this is a multipart */
|
||||
if (GMIME_IS_MULTIPART (part) || GMIME_IS_MESSAGE_PART (part))
|
||||
return;
|
||||
|
||||
charset = g_mime_object_get_content_type_parameter (part, "charset");
|
||||
|
||||
if (stream_out) {
|
||||
|
|
Loading…
Add table
Reference in a new issue