From 7885426c2bfc410838e9c49bfd350b04e0535435 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 7 Dec 2012 10:11:00 -0500 Subject: EMailFormatterExtension: Convert get_display_name() to a string field. Of the formatter extensions that provide a display name, they all use a static string. So we don't need an instance of the extension to obtain its display name. Just make it a string field in the class structure. --- em-format/e-mail-formatter-quote-attachment.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'em-format/e-mail-formatter-quote-attachment.c') diff --git a/em-format/e-mail-formatter-quote-attachment.c b/em-format/e-mail-formatter-quote-attachment.c index 4a48a84dc0..03a2961f57 100644 --- a/em-format/e-mail-formatter-quote-attachment.c +++ b/em-format/e-mail-formatter-quote-attachment.c @@ -107,12 +107,6 @@ emfqe_attachment_format (EMailFormatterExtension *extension, return TRUE; } -static const gchar * -emfqe_attachment_get_display_name (EMailFormatterExtension *extension) -{ - return NULL; -} - static const gchar * emfqe_attachment_get_description (EMailFormatterExtension *extension) { @@ -124,7 +118,6 @@ e_mail_formatter_quote_attachment_class_init (EMailFormatterExtensionClass *clas { class->mime_types = formatter_mime_types; class->format = emfqe_attachment_format; - class->get_display_name = emfqe_attachment_get_display_name; class->get_description = emfqe_attachment_get_description; } -- cgit v1.2.3