[evolution-data-server/imap-notify: 34/40] Remove camel_imapx_namespace_list_clear().



commit 969a95fedf7c9c9ca074f35d0704d9106e6959d2
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 f978cf4..f94581e 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 */
@@ -2888,36 +2887,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 83eaa88..68c1118 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]