From d9699159f010c612deca650c6ee336763d908954 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 7 Dec 2012 10:31:18 -0500 Subject: EMailFormatterExtension: Convert get_description() to a string field. Of the formatter extensions that provide a description, they all use a static string. So we don't need an instance of the extension to obtain its description. Just make it a string field in the class structure. --- em-format/e-mail-formatter-extension.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'em-format/e-mail-formatter-extension.c') diff --git a/em-format/e-mail-formatter-extension.c b/em-format/e-mail-formatter-extension.c index 01764a796f..9390d77a15 100644 --- a/em-format/e-mail-formatter-extension.c +++ b/em-format/e-mail-formatter-extension.c @@ -138,24 +138,3 @@ e_mail_formatter_extension_get_widget (EMailFormatterExtension *extension, return widget; } -/** - * e_mail_formatter_extension_get_description: - * @extension: an #EMailFormatterExtension - * - * A virtual function reimplemented in all formatter extensions. It returns a - * longer description of capabilities of the extension. - * - * Returns: A (localized) string with description of the extension. - */ -const gchar * -e_mail_formatter_extension_get_description (EMailFormatterExtension *extension) -{ - EMailFormatterExtensionClass *class; - - g_return_val_if_fail (E_IS_MAIL_FORMATTER_EXTENSION (extension), NULL); - - class = E_MAIL_FORMATTER_EXTENSION_GET_CLASS (extension); - g_return_val_if_fail (class->get_description != NULL, NULL); - - return class->get_description (extension); -} -- cgit v1.2.3