diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-07-09 19:47:08 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-07-09 20:44:22 +0800 |
commit | 3afa4cdd9553e1b9a0e8a8da1cfa73d13ca7c78c (patch) | |
tree | 666628e37791f55cf055a705d90982c537cdd2a2 /mail/em-folder-tree.c | |
parent | a0bc647f07e097edf87b89341225710b5be40208 (diff) | |
download | gsoc2013-evolution-3afa4cdd9553e1b9a0e8a8da1cfa73d13ca7c78c.tar gsoc2013-evolution-3afa4cdd9553e1b9a0e8a8da1cfa73d13ca7c78c.tar.gz gsoc2013-evolution-3afa4cdd9553e1b9a0e8a8da1cfa73d13ca7c78c.tar.bz2 gsoc2013-evolution-3afa4cdd9553e1b9a0e8a8da1cfa73d13ca7c78c.tar.lz gsoc2013-evolution-3afa4cdd9553e1b9a0e8a8da1cfa73d13ca7c78c.tar.xz 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/em-folder-tree.c')
-rw-r--r-- | mail/em-folder-tree.c | 22 |
1 files changed, 0 insertions, 22 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) { |