From 20ec9d7c1fdecce39a75fdab50814a6af0ae9b86 Mon Sep 17 00:00:00 2001 From: Dan Vrátil Date: Wed, 27 Jun 2012 14:13:02 +0200 Subject: Bug #678834 - [prefer-plain] Setting change works only after restart --- em-format/e-mail-part-list.c | 31 ------------------------------- em-format/e-mail-part-list.h | 4 ---- 2 files changed, 35 deletions(-) (limited to 'em-format') diff --git a/em-format/e-mail-part-list.c b/em-format/e-mail-part-list.c index 58ad7aa09d..38beeea6e2 100644 --- a/em-format/e-mail-part-list.c +++ b/em-format/e-mail-part-list.c @@ -150,34 +150,3 @@ e_mail_part_list_get_registry (void) return registry; } - -static void -part_list_weak_ref_notify (gchar *mail_uri, - EMailPartList *part_list) -{ - CamelObjectBag *reg = e_mail_part_list_get_registry (); - - camel_object_bag_remove (reg, part_list); -} - -/** - * e_mail_part_list_registry_add: - * - * This method should be used to add a new @part_list to the - * #CamelObjectBag registry. It will automatically handle removing - * the @part_list from the bag when it's destroyed. - * - * The @registry don't take any reference to the @part_list. - */ -void -e_mail_part_list_registry_add (CamelObjectBag *registry, - const gchar *mail_uri, - EMailPartList *part_list) -{ - camel_object_bag_add (registry, mail_uri, part_list); - - g_object_weak_ref ( - G_OBJECT (part_list), - (GWeakNotify) part_list_weak_ref_notify, - g_strdup (mail_uri)); -} diff --git a/em-format/e-mail-part-list.h b/em-format/e-mail-part-list.h index d0c2055b31..c6f952eab3 100644 --- a/em-format/e-mail-part-list.h +++ b/em-format/e-mail-part-list.h @@ -74,10 +74,6 @@ GSList * e_mail_part_list_get_iter (GSList *list, CamelObjectBag * e_mail_part_list_get_registry (void); -void e_mail_part_list_registry_add (CamelObjectBag *registry, - const gchar *mail_uri, - EMailPartList *part_list); - G_END_DECLS #endif /* E_MAIL_PART_LIST_H_ */ -- cgit