diff options
Diffstat (limited to 'em-format/e-mail-part-list.c')
-rw-r--r-- | em-format/e-mail-part-list.c | 31 |
1 files changed, 0 insertions, 31 deletions
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)); -} |