[evolution-data-server/imap-notify: 30/40] Remove camel_imapx_store_summary_path_to_mailbox().



commit 2e6cc584d12d0d35ce1d656b909f0fce27a563ba
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 8bd9c7b..5323625 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 da14d79..70ec527 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -1138,7 +1138,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]