Remove conversion to html in extract_text method.
authorJose Dapena Paz <jdapena@igalia.com>
Tue, 16 Jun 2009 17:10:06 +0000 (19:10 +0200)
committerJose Dapena Paz <jdapena@igalia.com>
Wed, 17 Jun 2009 15:05:35 +0000 (17:05 +0200)
src/modest-formatter.c

index 6eabe57..4c12532 100644 (file)
@@ -74,7 +74,7 @@ extract_text (ModestFormatter *self, TnyMimePart *body)
        TnyStream *input_stream;
        GtkTextBuffer *buf;
        GtkTextIter start, end;
        TnyStream *input_stream;
        GtkTextBuffer *buf;
        GtkTextIter start, end;
-       gchar *text, *converted_text;
+       gchar *text;
        ModestFormatterPrivate *priv;
        gint total;
 
        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);
 
        /* 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;
 }
 
        return text;
 }