[evolution-data-server/imap-notify: 32/40] Remove camel_imapx_store_summary_namespace_find_by_mailbox().



commit 8d2f86c9036f9ba064ba455970943a3c9ebc838e
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Sep 11 16:31:04 2013 -0400

    Remove camel_imapx_store_summary_namespace_find_by_mailbox().
    
    No longer used.

 camel/camel-imapx-store-summary.c       |   23 -----------------------
 camel/camel-imapx-store-summary.h       |    7 -------
 docs/reference/camel/camel-sections.txt |    1 -
 3 files changed, 0 insertions(+), 31 deletions(-)
---
diff --git a/camel/camel-imapx-store-summary.c b/camel/camel-imapx-store-summary.c
index b31ae6c..947d957 100644
--- a/camel/camel-imapx-store-summary.c
+++ b/camel/camel-imapx-store-summary.c
@@ -412,26 +412,3 @@ camel_imapx_store_summary_add_from_mailbox (CamelIMAPXStoreSummary *s,
        return info;
 }
 
-CamelIMAPXStoreNamespace *
-camel_imapx_store_summary_namespace_find_by_mailbox (CamelIMAPXStoreSummary *s,
-                                                     const gchar *mailbox)
-{
-       gint len = 0;
-       CamelIMAPXStoreNamespace *ns;
-
-       /* NB: this currently only compares against 1 namespace, in future compare against others */
-       /* CHEN TODO */
-       ns = s->namespaces->personal;
-       while (ns) {
-               if (ns->prefix)
-                       len = strlen (ns->prefix);
-               if (len == 0
-                   || (strncmp (ns->prefix, mailbox, len) == 0
-                       && (mailbox[len] == ns->sep || mailbox[len] == 0)))
-                       break;
-               ns = NULL;
-       }
-
-       /* have a default? */
-       return ns;
-}
diff --git a/camel/camel-imapx-store-summary.h b/camel/camel-imapx-store-summary.h
index fd57bd3..03dd4b7 100644
--- a/camel/camel-imapx-store-summary.h
+++ b/camel/camel-imapx-store-summary.h
@@ -90,13 +90,6 @@ struct _CamelIMAPXStoreSummaryClass {
 GType          camel_imapx_store_summary_get_type (void);
 CamelIMAPXStoreSummary *
                camel_imapx_store_summary_new   (void);
-
-/* TODO: this api needs some more work, needs to support lists */
-CamelIMAPXStoreNamespace *
-               camel_imapx_store_summary_namespace_find_by_mailbox
-                                               (CamelIMAPXStoreSummary *s,
-                                                const gchar *mailbox);
-
 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 96b4e2a..ecf7c4b 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -1136,7 +1136,6 @@ CamelIMAPXStoreNamespace
 CamelIMAPXNamespaceList
 CamelIMAPXStoreSummary
 camel_imapx_store_summary_new
-camel_imapx_store_summary_namespace_find_by_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]