[evolution-data-server] Remove camel_imapx_store_summary_path_to_mailbox().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Remove camel_imapx_store_summary_path_to_mailbox().
- Date: Sun, 27 Oct 2013 14:55:44 +0000 (UTC)
commit 81e6493fb5dd3f17d433a1f7bdb86e401d23517a
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Sep 11 10:24:41 2013 -0400
Remove camel_imapx_store_summary_path_to_mailbox().
No longer used.
camel/camel-imapx-store-summary.c | 77 -------------------------------
camel/camel-imapx-store-summary.h | 6 --
docs/reference/camel/camel-sections.txt | 1 -
3 files changed, 0 insertions(+), 84 deletions(-)
---
diff --git a/camel/camel-imapx-store-summary.c b/camel/camel-imapx-store-summary.c
index d630aa3..285a42e 100644
--- a/camel/camel-imapx-store-summary.c
+++ b/camel/camel-imapx-store-summary.c
@@ -367,83 +367,6 @@ camel_imapx_store_summary_mailbox (CamelIMAPXStoreSummary *s,
return (CamelIMAPXStoreInfo *) match;
}
-gchar *
-camel_imapx_store_summary_path_to_mailbox (CamelIMAPXStoreSummary *s,
- const gchar *path,
- gchar dir_sep)
-{
- CamelStoreSummary *store_summary;
- gchar *mailbox_name;
- gchar *subpath, *last = NULL;
- CamelStoreInfo *si;
- CamelIMAPXStoreNamespace *ns;
- const gchar *si_mailbox_name = NULL;
-
- store_summary = CAMEL_STORE_SUMMARY (s);
-
- /* check to see if we have a subpath of path already defined */
- subpath = alloca (strlen (path) + 1);
- strcpy (subpath, path);
- do {
- si = camel_store_summary_path (store_summary, subpath);
- if (si == NULL) {
- last = strrchr (subpath, '/');
- if (last != NULL)
- *last = 0;
- }
- } while (si == NULL && last != NULL);
-
- if (si != NULL)
- si_mailbox_name = ((CamelIMAPXStoreInfo *) si)->mailbox_name;
-
- /* path is already present, use the raw version we have */
- if (si != NULL && strlen (subpath) == strlen (path)) {
- mailbox_name = g_strdup (si_mailbox_name);
- camel_store_summary_info_unref (store_summary, si);
- return mailbox_name;
- }
-
- ns = camel_imapx_store_summary_namespace_find_by_path (s, path);
-
- if (si != NULL)
- mailbox_name = g_strdup (path + strlen (subpath));
- else if (ns != NULL)
- mailbox_name = g_strdup (path + strlen (ns->prefix));
- else
- mailbox_name = g_strdup (path);
-
- if (dir_sep != '/') {
- gchar *cp = mailbox_name;
-
- while (*cp != '\0') {
- if (*cp == '/')
- *cp = dir_sep;
- else if (*cp == dir_sep)
- *cp = '/';
- cp++;
- }
- }
-
- /* merge old path part if required */
- if (si != NULL) {
- gchar *temp;
-
- temp = g_strdup_printf ("%s%s", si_mailbox_name, mailbox_name);
- g_free (mailbox_name);
- camel_store_summary_info_unref (store_summary, si);
- mailbox_name = temp;
-
- } else if (ns != NULL) {
- gchar *temp;
-
- temp = g_strdup_printf ("%s%s", ns->prefix, mailbox_name);
- g_free (mailbox_name);
- mailbox_name = temp;
- }
-
- return mailbox_name;
-}
-
CamelIMAPXStoreInfo *
camel_imapx_store_summary_add_from_mailbox (CamelIMAPXStoreSummary *s,
CamelIMAPXMailbox *mailbox)
diff --git a/camel/camel-imapx-store-summary.h b/camel/camel-imapx-store-summary.h
index 82d0003..96eef8d 100644
--- a/camel/camel-imapx-store-summary.h
+++ b/camel/camel-imapx-store-summary.h
@@ -101,12 +101,6 @@ CamelIMAPXStoreNamespace *
(CamelIMAPXStoreSummary *s,
const gchar *mailbox);
-/* converts to/from utf8 canonical nasmes */
-gchar * camel_imapx_store_summary_path_to_mailbox
- (CamelIMAPXStoreSummary *s,
- const gchar *path,
- gchar dir_sep);
-
CamelIMAPXStoreInfo *
camel_imapx_store_summary_mailbox
(CamelIMAPXStoreSummary *s,
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index 260eb1c..f4ce185 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -1148,7 +1148,6 @@ CamelIMAPXStoreSummary
camel_imapx_store_summary_new
camel_imapx_store_summary_namespace_find_by_path
camel_imapx_store_summary_namespace_find_by_mailbox
-camel_imapx_store_summary_path_to_mailbox
camel_imapx_store_summary_mailbox
camel_imapx_store_summary_add_from_mailbox
<SUBSECTION Standard>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]