[evolution-rss] EMailFormatterRSS: Remove unneeded fetch of EWebView content



commit 36996068d40441f9b6175e5176543c2c3998c017
Author: Milan Crha <mcrha redhat com>
Date:   Wed Oct 9 12:04:19 2019 +0200

    EMailFormatterRSS: Remove unneeded fetch of EWebView content
    
    It was unneeded, because it was unused.

 src/e-mail-formatter-evolution-rss.c | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/src/e-mail-formatter-evolution-rss.c b/src/e-mail-formatter-evolution-rss.c
index 8f14a54..543d5aa 100644
--- a/src/e-mail-formatter-evolution-rss.c
+++ b/src/e-mail-formatter-evolution-rss.c
@@ -69,7 +69,6 @@ typedef struct _HD HD;
 struct _HD {
        gchar *website;
        gchar *content;
-       gchar *current_html;
        EMailFormatter *formatter;
        gchar *header;
 #if EVOLUTION_VERSION < 31191
@@ -104,7 +103,6 @@ emfe_evolution_rss_format (EMailFormatterExtension *extension,
 {
        CamelDataWrapper *dw;
        gchar *str;
-       gchar *h;
 #if EVOLUTION_VERSION < 31191
        CamelStream *decoded_stream;
        GByteArray *ba;
@@ -135,12 +133,6 @@ emfe_evolution_rss_format (EMailFormatterExtension *extension,
        if (!rss_init)
                        goto fail;
 
-#if EVOLUTION_VERSION >= 32190
-       h = e_web_view_get_content_html_sync (E_WEB_VIEW (rss_get_display()), NULL, NULL);
-#else
-       h = g_strdup(e_web_view_get_html (E_WEB_VIEW (rss_get_display())));
-#endif
-
        website = (gchar *)camel_medium_get_header (
                        CAMEL_MEDIUM (message), "Website");
        if (!website)
@@ -340,7 +332,6 @@ emfe_evolution_rss_format (EMailFormatterExtension *extension,
                GError *err = NULL;
                gchar *str;
                HD *hd = g_malloc0(sizeof(*hd));
-               hd->current_html = h;
                hd->formatter = formatter;
                hd->header = e_mail_formatter_get_html_header(formatter);
                hd->stream = stream;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]