Remove unused camel_imapx_namespace_list_copy().
authorMatthew Barnes <mbarnes@redhat.com>
Sun, 14 Jul 2013 03:21:53 +0000 (23:21 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Sun, 14 Jul 2013 04:04:46 +0000 (00:04 -0400)
camel/camel-imapx-utils.c
camel/camel-imapx-utils.h

index 24fcdd5..08e4e0f 100644 (file)
@@ -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)
 {
index 8c27963..326d433 100644 (file)
@@ -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