[evolution-data-server] Remove camel_imapx_store_summary_namespace_find_by_mailbox().



commit 8648ebbe1b14365bc1031054f28497376a2fd9a9
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 c3b1500..58d86dd 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 e6842b6..e996ea7 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -1146,7 +1146,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]