diff options
author | Dan Vrátil <dvratil@redhat.com> | 2012-08-09 22:15:27 +0800 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2012-08-09 22:16:38 +0800 |
commit | 43917f0a6deadef5dbd4c37bec8c7b245c22ce61 (patch) | |
tree | 8e23e36561e10ef3f812de16205ed3a77587ec3b /em-format | |
parent | d783fee9aa918c59c3d2939916b847560b5f7bca (diff) | |
download | gsoc2013-evolution-43917f0a6deadef5dbd4c37bec8c7b245c22ce61.tar gsoc2013-evolution-43917f0a6deadef5dbd4c37bec8c7b245c22ce61.tar.gz gsoc2013-evolution-43917f0a6deadef5dbd4c37bec8c7b245c22ce61.tar.bz2 gsoc2013-evolution-43917f0a6deadef5dbd4c37bec8c7b245c22ce61.tar.lz gsoc2013-evolution-43917f0a6deadef5dbd4c37bec8c7b245c22ce61.tar.xz gsoc2013-evolution-43917f0a6deadef5dbd4c37bec8c7b245c22ce61.tar.zst gsoc2013-evolution-43917f0a6deadef5dbd4c37bec8c7b245c22ce61.zip |
Remove some unused code from EMailReader
This is leftover from the WebKit port and it didn't work
properly. Most of the code was removed, some was moved
to a better place.
Diffstat (limited to 'em-format')
-rw-r--r-- | em-format/e-mail-formatter.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/em-format/e-mail-formatter.c b/em-format/e-mail-formatter.c index 99b00361c9..21779162c5 100644 --- a/em-format/e-mail-formatter.c +++ b/em-format/e-mail-formatter.c @@ -1321,15 +1321,17 @@ e_mail_formatter_set_charset (EMailFormatter *formatter, const gchar *charset) { g_return_if_fail (E_IS_MAIL_FORMATTER (formatter)); - g_return_if_fail (charset && *charset); if (g_strcmp0 (formatter->priv->charset, charset) == 0) return; - if (formatter->priv->charset) - g_free (formatter->priv->charset); + g_free (formatter->priv->charset); - formatter->priv->charset = g_strdup (charset); + if (!charset) { + formatter->priv->charset = NULL; + } else { + formatter->priv->charset = g_strdup (charset); + } g_object_notify (G_OBJECT (formatter), "charset"); } @@ -1352,9 +1354,7 @@ e_mail_formatter_set_default_charset (EMailFormatter *formatter, if (g_strcmp0 (formatter->priv->default_charset, default_charset) == 0) return; - if (formatter->priv->default_charset) - g_free (formatter->priv->default_charset); - + g_free (formatter->priv->default_charset); formatter->priv->default_charset = g_strdup (default_charset); g_object_notify (G_OBJECT (formatter), "default-charset"); |