aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-extension.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-12-07 01:57:33 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-12-08 03:01:04 +0800
commit9d34f72ec1b99d58ee1c3a6d1a964a6dde166f79 (patch)
tree8849353e617afe5207095fb6100a33e79989c9bc /em-format/e-mail-extension.c
parent3924dc759dbf38df0f9ff6941990dcf242478617 (diff)
downloadgsoc2013-evolution-9d34f72ec1b99d58ee1c3a6d1a964a6dde166f79.tar
gsoc2013-evolution-9d34f72ec1b99d58ee1c3a6d1a964a6dde166f79.tar.gz
gsoc2013-evolution-9d34f72ec1b99d58ee1c3a6d1a964a6dde166f79.tar.bz2
gsoc2013-evolution-9d34f72ec1b99d58ee1c3a6d1a964a6dde166f79.tar.lz
gsoc2013-evolution-9d34f72ec1b99d58ee1c3a6d1a964a6dde166f79.tar.xz
gsoc2013-evolution-9d34f72ec1b99d58ee1c3a6d1a964a6dde166f79.tar.zst
gsoc2013-evolution-9d34f72ec1b99d58ee1c3a6d1a964a6dde166f79.zip
EMailExtension: Replace mime_types() method with a string array.
In all implementations for EMailExtension, the MIME type list is a static string array -- with the single exception of the text-highlight module, where the MIME type list is dynamically assembled once. Replace the mime_types() method with a "mime_types" string array in the EMailExtensionInterface struct. Then the list of MIME types supported by the class implementing the EMailExtensionInterface can be obtained without requiring an instance of the class.
Diffstat (limited to 'em-format/e-mail-extension.c')
-rw-r--r--em-format/e-mail-extension.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/em-format/e-mail-extension.c b/em-format/e-mail-extension.c
index 9516974824..ee319773c1 100644
--- a/em-format/e-mail-extension.c
+++ b/em-format/e-mail-extension.c
@@ -39,29 +39,3 @@ e_mail_extension_default_init (EMailExtensionInterface *iface)
* of extensions.
*/
-/**
- * e_mail_extension_get_mime_types:
- * @extension: an #EMailExtension
- *
- * A virtual function reimplemented in all mail extensions that returns a
- * @NULL-terminated array of mime types that the particular extension is able
- * to process.
- *
- * The mime-types can be either full (like text/plain), or with common subtype,
- * e.g. text/ *. User should try to find the best mathing mime-type handler and
- * use the latter type only as a fallback.
- *
- * Return value: a @NULL-terminated array or @NULL
- */
-const gchar **
-e_mail_extension_get_mime_types (EMailExtension *extension)
-{
- EMailExtensionInterface *interface;
-
- g_return_val_if_fail (E_IS_MAIL_EXTENSION (extension), NULL);
-
- interface = E_MAIL_EXTENSION_GET_INTERFACE (extension);
- g_return_val_if_fail (interface->mime_types != NULL, NULL);
-
- return interface->mime_types (extension);
-}