aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-07-09 19:47:08 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-07-09 20:44:22 +0800
commit3afa4cdd9553e1b9a0e8a8da1cfa73d13ca7c78c (patch)
tree666628e37791f55cf055a705d90982c537cdd2a2 /mail
parenta0bc647f07e097edf87b89341225710b5be40208 (diff)
downloadgsoc2013-evolution-3afa4cdd9553e1b9a0e8a8da1cfa73d13ca7c78c.tar.gz
gsoc2013-evolution-3afa4cdd9553e1b9a0e8a8da1cfa73d13ca7c78c.tar.zst
gsoc2013-evolution-3afa4cdd9553e1b9a0e8a8da1cfa73d13ca7c78c.zip
Remove em_folder_tree_get_selected_folder().
The function blocks, lacks a "sync" suffix and GCancellable and GError arguments. Not fit for use. Kill it.
Diffstat (limited to 'mail')
-rw-r--r--mail/em-folder-tree.c22
-rw-r--r--mail/em-folder-tree.h2
2 files changed, 0 insertions, 24 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 3cea8d335f..fd5ac582e2 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -3389,28 +3389,6 @@ em_folder_tree_get_selected_uri (EMFolderTree *folder_tree)
return folder_uri;
}
-CamelFolder *
-em_folder_tree_get_selected_folder (EMFolderTree *folder_tree)
-{
- CamelFolder *folder;
- CamelStore *store;
- gchar *full_name;
-
- g_return_val_if_fail (EM_IS_FOLDER_TREE (folder_tree), NULL);
-
- if (!em_folder_tree_get_selected (folder_tree, &store, &full_name))
- return NULL;
-
- /* FIXME camel_store_get_folder_sync() may block. */
- folder = camel_store_get_folder_sync (
- store, full_name, CAMEL_STORE_FOLDER_INFO_FAST, NULL, NULL);
-
- g_object_unref (store);
- g_free (full_name);
-
- return folder;
-}
-
CamelStore *
em_folder_tree_get_selected_store (EMFolderTree *folder_tree)
{
diff --git a/mail/em-folder-tree.h b/mail/em-folder-tree.h
index 5e893e687a..74eb111554 100644
--- a/mail/em-folder-tree.h
+++ b/mail/em-folder-tree.h
@@ -134,8 +134,6 @@ gboolean em_folder_tree_store_root_selected
(EMFolderTree *folder_tree,
CamelStore **out_store);
gchar * em_folder_tree_get_selected_uri (EMFolderTree *folder_tree);
-CamelFolder * em_folder_tree_get_selected_folder
- (EMFolderTree *folder_tree);
CamelStore * em_folder_tree_get_selected_store
(EMFolderTree *folder_tree);
gboolean em_folder_tree_create_folder (EMFolderTree *folder_tree,