[evolution-mapi] mapi_store_get_folder_sync: Remove CAMEL_STORE_FOLDER_CREATE branch.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] mapi_store_get_folder_sync: Remove CAMEL_STORE_FOLDER_CREATE branch.
- Date: Mon, 3 Mar 2014 17:37:51 +0000 (UTC)
commit e0a5d6fc70de8b4c18872dc46b9a1c486f34b4e9
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Mar 3 12:38:17 2014 -0500
mapi_store_get_folder_sync: Remove CAMEL_STORE_FOLDER_CREATE branch.
CamelStore now handles this flag directly; subclasses will never receive
it.
src/camel/camel-mapi-store.c | 24 ------------------------
1 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/src/camel/camel-mapi-store.c b/src/camel/camel-mapi-store.c
index 669d80c..569de26 100644
--- a/src/camel/camel-mapi-store.c
+++ b/src/camel/camel-mapi-store.c
@@ -1147,30 +1147,6 @@ mapi_store_get_folder_sync (CamelStore *store,
gchar *folder_dir;
si = camel_store_summary_path (mapi_store->summary, folder_name);
- if (!si && (flags & CAMEL_STORE_FOLDER_CREATE) == CAMEL_STORE_FOLDER_CREATE) {
- gchar *name, *tmp;
- const gchar *parent;
- CamelFolderInfo *folder_info;
-
- tmp = g_strdup (folder_name);
- if (!(name = strrchr (tmp, '/'))) {
- name = tmp;
- parent = "";
- } else {
- *name++ = '\0';
- parent = tmp;
- }
-
- folder_info = mapi_store_create_folder_sync (
- store, parent, name, cancellable, error);
- g_free (tmp);
-
- if (!folder_info)
- return NULL;
-
- camel_folder_info_free (folder_info);
- }
-
if (si)
camel_store_summary_info_unref (mapi_store->summary, si);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]