From 4a06e1bb633e392b049942ef28360d3830e78420 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 26 Feb 2013 18:36:56 -0500 Subject: Remove emu_free_mail_cache(). No longer needed, since the resources it frees are no longer used. --- mail/e-mail-backend.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'mail') diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c index fc368f0c8b..cfd6f0a349 100644 --- a/mail/e-mail-backend.c +++ b/mail/e-mail-backend.c @@ -265,16 +265,6 @@ mail_backend_poll_to_quit (EActivity *activity) return mail_msg_active (); } -/* Helper for mail_backend_prepare_for_quit_cb() */ -static void -mail_backend_ready_to_quit (EActivity *activity) -{ - emu_free_mail_cache (g_object_unref, g_object_ref (activity)); - - /* Do this last. It may terminate the process. */ - g_object_unref (activity); -} - static gboolean mail_backend_service_is_enabled (ESourceRegistry *registry, CamelService *service) @@ -368,9 +358,7 @@ mail_backend_prepare_for_quit_cb (EShell *shell, G_PRIORITY_DEFAULT, QUIT_POLL_INTERVAL, (GSourceFunc) mail_backend_poll_to_quit, g_object_ref (activity), - (GDestroyNotify) mail_backend_ready_to_quit); - else - mail_backend_ready_to_quit (g_object_ref (activity)); + (GDestroyNotify) g_object_unref); } static void -- cgit v1.2.3