[evolution-data-server] Remove unused camel_imapx_namespace_list_copy().



commit d1a4a7169f4a81313caea7bb0b39e4f98ce4f210
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Jul 13 23:21:53 2013 -0400

    Remove unused camel_imapx_namespace_list_copy().

 camel/camel-imapx-utils.c |   34 ----------------------------------
 camel/camel-imapx-utils.h |    2 --
 2 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/camel/camel-imapx-utils.c b/camel/camel-imapx-utils.c
index 24fcdd5..08e4e0f 100644
--- a/camel/camel-imapx-utils.c
+++ b/camel/camel-imapx-utils.c
@@ -2544,40 +2544,6 @@ camel_imapx_namespace_list_clear (struct _CamelIMAPXNamespaceList *nsl)
        nsl = NULL;
 }
 
-static CamelIMAPXStoreNamespace *
-imapx_namespace_copy (const CamelIMAPXStoreNamespace *ns)
-{
-       CamelIMAPXStoreNamespace *list, *node, *tail;
-
-       list = NULL;
-       tail = (CamelIMAPXStoreNamespace *) &list;
-
-       while (ns != NULL) {
-               tail->next = node = g_malloc (sizeof (CamelIMAPXStoreNamespace));
-               node->path = g_strdup (ns->path);
-               node->sep = ns->sep;
-               ns = ns->next;
-               tail = node;
-       }
-
-       tail->next = NULL;
-
-       return list;
-}
-
-struct _CamelIMAPXNamespaceList *
-camel_imapx_namespace_list_copy (const struct _CamelIMAPXNamespaceList *nsl)
-{
-       CamelIMAPXNamespaceList *new;
-
-       new = g_malloc (sizeof (CamelIMAPXNamespaceList));
-       new->personal = imapx_namespace_copy (nsl->personal);
-       new->other = imapx_namespace_copy (nsl->other);
-       new->shared = imapx_namespace_copy (nsl->shared);
-
-       return new;
-}
-
 gchar *
 imapx_get_temp_uid (void)
 {
diff --git a/camel/camel-imapx-utils.h b/camel/camel-imapx-utils.h
index 8c27963..326d433 100644
--- a/camel/camel-imapx-utils.h
+++ b/camel/camel-imapx-utils.h
@@ -443,8 +443,6 @@ struct _CamelIMAPXNamespaceList *
                imapx_parse_namespace_list      (struct _CamelIMAPXStream *is,
                                                 GCancellable *cancellable,
                                                 GError **error);
-struct _CamelIMAPXNamespaceList *
-               camel_imapx_namespace_list_copy (const struct _CamelIMAPXNamespaceList *nsl);
 
 G_END_DECLS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]