aboutsummaryrefslogtreecommitdiffstats
path: root/em-format
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2012-06-27 20:13:02 +0800
committerDan Vrátil <dvratil@redhat.com>2012-06-27 20:18:39 +0800
commit20ec9d7c1fdecce39a75fdab50814a6af0ae9b86 (patch)
tree50115ef920cc5d28327b18e2346a7b61b4c46018 /em-format
parentf77a83e8759912bc74029e29effe1f0d20876965 (diff)
downloadgsoc2013-evolution-20ec9d7c1fdecce39a75fdab50814a6af0ae9b86.tar.gz
gsoc2013-evolution-20ec9d7c1fdecce39a75fdab50814a6af0ae9b86.tar.zst
gsoc2013-evolution-20ec9d7c1fdecce39a75fdab50814a6af0ae9b86.zip
Bug #678834 - [prefer-plain] Setting change works only after restart
Diffstat (limited to 'em-format')
-rw-r--r--em-format/e-mail-part-list.c31
-rw-r--r--em-format/e-mail-part-list.h4
2 files changed, 0 insertions, 35 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));
-}
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_ */