[gtksourceview] encoding: remove unused function



commit 9a6ed08e0ba9af3156254188f928495364122a58
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Aug 12 15:47:56 2014 +0200

    encoding: remove unused function
    
    Since we don't have a gsetting in GtkSourceView, list_to_strv() is
    useless.

 gtksourceview/gtksourceencoding.c |   26 --------------------------
 gtksourceview/gtksourceencoding.h |    6 ------
 2 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/gtksourceview/gtksourceencoding.c b/gtksourceview/gtksourceencoding.c
index d6b76e8..8de3b83 100644
--- a/gtksourceview/gtksourceencoding.c
+++ b/gtksourceview/gtksourceencoding.c
@@ -565,7 +565,6 @@ gtk_source_encoding_free (GtkSourceEncoding *enc)
        g_return_if_fail (enc != NULL);
 }
 
-/* Will probably be used in the future. */
 static gboolean
 data_exists (GSList         *list,
             const gpointer  data)
@@ -609,28 +608,3 @@ _gtk_source_encoding_strv_to_list (const gchar * const *enc_str)
 
        return g_slist_reverse (res);
 }
-
-#if 0
-gchar **
-_gtk_source_encoding_list_to_strv (const GSList *enc_list)
-{
-       GSList *l;
-       GPtrArray *array;
-
-       array = g_ptr_array_sized_new (g_slist_length ((GSList *)enc_list) + 1);
-
-       for (l = (GSList *)enc_list; l != NULL; l = g_slist_next (l))
-       {
-               const GtkSourceEncoding *enc = l->data;
-               const gchar *charset = gtk_source_encoding_get_charset (enc);
-
-               g_return_val_if_fail (charset != NULL, NULL);
-
-               g_ptr_array_add (array, g_strdup (charset));
-       }
-
-       g_ptr_array_add (array, NULL);
-
-       return (gchar **)g_ptr_array_free (array, FALSE);
-}
-#endif
diff --git a/gtksourceview/gtksourceencoding.h b/gtksourceview/gtksourceencoding.h
index 2567e3e..3b4dabc 100644
--- a/gtksourceview/gtksourceencoding.h
+++ b/gtksourceview/gtksourceencoding.h
@@ -70,12 +70,6 @@ void                  gtk_source_encoding_free               (GtkSourceEncoding       
*enc);
 G_GNUC_INTERNAL
 GSList                 *_gtk_source_encoding_strv_to_list      (const gchar * const     *enc_str);
 
-#if 0
-/* Will probably be used in the future. */
-G_GNUC_INTERNAL
-gchar                 **_gtk_source_encoding_list_to_strv      (const GSList            *enc);
-#endif
-
 G_END_DECLS
 
 #endif  /* __GTK_SOURCE_ENCODING_H__ */


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