aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-02-27 07:36:56 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-02-27 23:59:55 +0800
commit4a06e1bb633e392b049942ef28360d3830e78420 (patch)
tree6feec76d0ba79a9e1f75b7d4892ec839492a6fce /mail
parent667585134e2b248e3d93f2f55cdee86b71e5432f (diff)
downloadgsoc2013-evolution-4a06e1bb633e392b049942ef28360d3830e78420.tar
gsoc2013-evolution-4a06e1bb633e392b049942ef28360d3830e78420.tar.gz
gsoc2013-evolution-4a06e1bb633e392b049942ef28360d3830e78420.tar.bz2
gsoc2013-evolution-4a06e1bb633e392b049942ef28360d3830e78420.tar.lz
gsoc2013-evolution-4a06e1bb633e392b049942ef28360d3830e78420.tar.xz
gsoc2013-evolution-4a06e1bb633e392b049942ef28360d3830e78420.tar.zst
gsoc2013-evolution-4a06e1bb633e392b049942ef28360d3830e78420.zip
Remove emu_free_mail_cache().
No longer needed, since the resources it frees are no longer used.
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-backend.c14
1 files changed, 1 insertions, 13 deletions
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