diff options
Diffstat (limited to 'my-evolution/e-summary-weather.c')
-rw-r--r-- | my-evolution/e-summary-weather.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/my-evolution/e-summary-weather.c b/my-evolution/e-summary-weather.c index 2be84faec6..6391fa7c3e 100644 --- a/my-evolution/e-summary-weather.c +++ b/my-evolution/e-summary-weather.c @@ -61,7 +61,7 @@ e_summary_weather_get_html (ESummary *summary) char *html; char *s; - if (summary->weather == NULL) { + if (summary->weather == NULL || summary->weather->weathers == NULL) { return NULL; } @@ -94,18 +94,6 @@ make_url (const char *code) return g_strdup_printf ("http://weather.noaa.gov/cgi-bin/mgetmetar.pl?cccc=%s", code); } -static char * -make_anchor (const char *name, const char *code) -{ - char *url, *anchor; - - url = make_url (code); - anchor = g_strdup_printf ("<a href=\"%s\">%s</a>", url, name); - g_free (url); - - return anchor; -} - static void weather_make_html (Weather *w) { |