Remove unnecessary mu_message_t flag (MESSAGE_MIME_OWNER)
Showing
3 changed files
with
1 additions
and
5 deletions
... | @@ -32,7 +32,6 @@ extern "C" { | ... | @@ -32,7 +32,6 @@ extern "C" { |
32 | 32 | ||
33 | #define MESSAGE_MODIFIED 0x10000 | 33 | #define MESSAGE_MODIFIED 0x10000 |
34 | #define MESSAGE_INTERNAL_STREAM 0x20000 | 34 | #define MESSAGE_INTERNAL_STREAM 0x20000 |
35 | #define MESSAGE_MIME_OWNER 0x40000 | ||
36 | 35 | ||
37 | struct _mu_message | 36 | struct _mu_message |
38 | { | 37 | { | ... | ... |
... | @@ -36,9 +36,8 @@ mu_message_is_multipart (mu_message_t msg, int *pmulti) | ... | @@ -36,9 +36,8 @@ mu_message_is_multipart (mu_message_t msg, int *pmulti) |
36 | int status = mu_mime_create (&msg->mime, msg, 0); | 36 | int status = mu_mime_create (&msg->mime, msg, 0); |
37 | if (status != 0) | 37 | if (status != 0) |
38 | return 0; | 38 | return 0; |
39 | msg->flags |= MESSAGE_MIME_OWNER; | ||
40 | } | 39 | } |
41 | *pmulti = mu_mime_is_multipart(msg->mime); | 40 | *pmulti = mu_mime_is_multipart (msg->mime); |
42 | } | 41 | } |
43 | return 0; | 42 | return 0; |
44 | } | 43 | } | ... | ... |
... | @@ -1074,7 +1074,6 @@ mu_mime_get_num_parts (mu_mime_t mime, size_t *nmtp_parts) | ... | @@ -1074,7 +1074,6 @@ mu_mime_get_num_parts (mu_mime_t mime, size_t *nmtp_parts) |
1074 | } | 1074 | } |
1075 | *nmtp_parts = mime->nmtp_parts; | 1075 | *nmtp_parts = mime->nmtp_parts; |
1076 | return (ret); | 1076 | return (ret); |
1077 | |||
1078 | } | 1077 | } |
1079 | 1078 | ||
1080 | int | 1079 | int |
... | @@ -1149,7 +1148,6 @@ mu_mime_to_message (mu_mime_t mime, mu_message_t *pmsg) | ... | @@ -1149,7 +1148,6 @@ mu_mime_to_message (mu_mime_t mime, mu_message_t *pmsg) |
1149 | if (rc == 0) | 1148 | if (rc == 0) |
1150 | { | 1149 | { |
1151 | mu_message_unref (msg); | 1150 | mu_message_unref (msg); |
1152 | msg->flags |= MESSAGE_MIME_OWNER; | ||
1153 | mime->msg = NULL; | 1151 | mime->msg = NULL; |
1154 | mu_mime_ref (mime); | 1152 | mu_mime_ref (mime); |
1155 | *pmsg = msg; | 1153 | *pmsg = msg; | ... | ... |
-
Please register or sign in to post a comment