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



commit bbf81d7bf0dc057d21bcd4e4f99b141611218236
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Sep 11 17:10:02 2013 -0400

    Remove camel_imapx_namespace_list_clear().
    
    No longer used.

 camel/camel-imapx-utils.c |   31 -------------------------------
 camel/camel-imapx-utils.h |    4 ----
 2 files changed, 0 insertions(+), 35 deletions(-)
---
diff --git a/camel/camel-imapx-utils.c b/camel/camel-imapx-utils.c
index 812e4a3..8ba8cb9 100644
--- a/camel/camel-imapx-utils.c
+++ b/camel/camel-imapx-utils.c
@@ -76,7 +76,6 @@ imapx_tokenise (register const gchar *str,
        return 0;
 }
 
-static void imapx_namespace_clear (CamelIMAPXStoreNamespace **ns);
 static const gchar * rename_label_flag (const gchar *flag, gint len, gboolean server_to_evo);
 
 /* flag table */
@@ -2884,36 +2883,6 @@ imapx_path_to_physical (const gchar *prefix,
        return res;
 }
 
-static void
-imapx_namespace_clear (CamelIMAPXStoreNamespace **ns)
-{
-       CamelIMAPXStoreNamespace *node, *next;
-
-       node = *ns;
-       while (node != NULL) {
-               next = node->next;
-               g_free (node->prefix);
-               g_free (node);
-               node = next;
-       }
-
-       *ns = NULL;
-}
-
-void
-camel_imapx_namespace_list_clear (struct _CamelIMAPXNamespaceList *nsl)
-{
-       if (!nsl)
-               return;
-
-       imapx_namespace_clear (&nsl->personal);
-       imapx_namespace_clear (&nsl->shared);
-       imapx_namespace_clear (&nsl->other);
-
-       g_free (nsl);
-       nsl = NULL;
-}
-
 gchar *
 imapx_get_temp_uid (void)
 {
diff --git a/camel/camel-imapx-utils.h b/camel/camel-imapx-utils.h
index 1df95d1..ac1f08e 100644
--- a/camel/camel-imapx-utils.h
+++ b/camel/camel-imapx-utils.h
@@ -35,7 +35,6 @@ G_BEGIN_DECLS
 struct _CamelIMAPXCommand;
 struct _CamelIMAPXStream;
 struct _CamelFlag;
-struct _CamelIMAPXNamespaceList;
 struct _CamelIMAPXStore;
 
 /* list of strings we know about that can be *quickly* tokenised */
@@ -403,9 +402,6 @@ gchar *             imapx_path_to_physical          (const gchar *prefix,
                                                 const gchar *vpath);
 gchar *                imapx_get_temp_uid              (void);
 
-void           camel_imapx_namespace_list_clear
-                                               (struct _CamelIMAPXNamespaceList *nsl);
-
 G_END_DECLS
 
 #endif /* CAMEL_IMAPX_UTILS_H */


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