From 57d7b1d1ecf43e0ca885d0afc336cca8e94f7836 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Tue, 16 Jun 2009 19:10:06 +0200 Subject: [PATCH] Remove conversion to html in extract_text method. --- src/modest-formatter.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/modest-formatter.c b/src/modest-formatter.c index 6eabe57..4c12532 100644 --- a/src/modest-formatter.c +++ b/src/modest-formatter.c @@ -74,7 +74,7 @@ extract_text (ModestFormatter *self, TnyMimePart *body) TnyStream *input_stream; GtkTextBuffer *buf; GtkTextIter start, end; - gchar *text, *converted_text; + gchar *text; ModestFormatterPrivate *priv; gint total; @@ -122,15 +122,6 @@ extract_text (ModestFormatter *self, TnyMimePart *body) /* Convert to desired content type if needed */ priv = MODEST_FORMATTER_GET_PRIVATE (self); - if (strcmp (tny_mime_part_get_content_type (body), priv->content_type) == 0) { - if (!strcmp (priv->content_type, "text/html")) - converted_text = modest_text_utils_convert_to_html (text); - else - converted_text = g_strdup (text); - - g_free (text); - text = converted_text; - } return text; } -- 1.7.9.5