From c539a9ec20f46e0dc66df76fa518f8b659467bcd Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 20 Aug 2012 16:42:47 -0400 Subject: Remove e_mail_junk_filter_available(). Because we now check for junk filtering software in configure, junk filtering modules can now safely assume the required junk filtering software is installed. No more having the module installed but not the required software. If this invariant is broken, an error will be shown for each new message received. --- modules/bogofilter/evolution-bogofilter.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'modules/bogofilter') diff --git a/modules/bogofilter/evolution-bogofilter.c b/modules/bogofilter/evolution-bogofilter.c index f48658055b..2056f4f11a 100644 --- a/modules/bogofilter/evolution-bogofilter.c +++ b/modules/bogofilter/evolution-bogofilter.c @@ -295,12 +295,6 @@ bogofilter_get_property (GObject *object, G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); } -static gboolean -bogofilter_available (EMailJunkFilter *junk_filter) -{ - return g_file_test (BOGOFILTER_COMMAND, G_FILE_TEST_IS_EXECUTABLE); -} - static GtkWidget * bogofilter_new_config_widget (EMailJunkFilter *junk_filter) { @@ -477,7 +471,6 @@ e_bogofilter_class_init (EBogofilterClass *class) junk_filter_class = E_MAIL_JUNK_FILTER_CLASS (class); junk_filter_class->filter_name = "Bogofilter"; junk_filter_class->display_name = _("Bogofilter"); - junk_filter_class->available = bogofilter_available; junk_filter_class->new_config_widget = bogofilter_new_config_widget; g_object_class_install_property ( -- cgit v1.2.3