From: Matthew Barnes Date: Sun, 14 Jul 2013 03:21:53 +0000 (-0400) Subject: Remove unused camel_imapx_namespace_list_copy(). X-Git-Tag: submit/tizen/20140917.130222~895 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1a4a7169f4a81313caea7bb0b39e4f98ce4f210;p=platform%2Fupstream%2Fevolution-data-server.git Remove unused camel_imapx_namespace_list_copy(). --- 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