From c10235e6dd09d93fc6bbdeb8ef4d800be7c6f6d5 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 7 Dec 2012 12:44:32 -0500 Subject: EMailParserExtension: Convert get_flags() to an enum field. Of the parser extensions that override get_flags(), they all return a fixed set of flags. So we don't need an instance of the extension to obtain its flags. Just make it an EMailParserExtensionFlags field in the class structure. --- em-format/e-mail-parser-application-smime.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'em-format/e-mail-parser-application-smime.c') diff --git a/em-format/e-mail-parser-application-smime.c b/em-format/e-mail-parser-application-smime.c index 29e623b52c..21593d326e 100644 --- a/em-format/e-mail-parser-application-smime.c +++ b/em-format/e-mail-parser-application-smime.c @@ -150,18 +150,12 @@ empe_app_smime_parse (EMailParserExtension *extension, return TRUE; } -static guint32 -empe_app_smime_get_flags (EMailParserExtension *extension) -{ - return E_MAIL_PARSER_EXTENSION_INLINE; -} - static void e_mail_parser_application_smime_class_init (EMailParserExtensionClass *class) { class->mime_types = parser_mime_types; + class->flags = E_MAIL_PARSER_EXTENSION_INLINE; class->parse = empe_app_smime_parse; - class->get_flags = empe_app_smime_get_flags; } static void -- cgit