From 924a8eb40557486bf487d2d179c2dd7e682f5d91 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 16 May 2015 00:47:57 -0400 Subject: GtkQuery: Drop unused mimetype functions These are not used, so drop them. --- gtk/gtkquery.c | 41 ----------------------------------------- gtk/gtkquery.h | 6 ------ 2 files changed, 47 deletions(-) diff --git a/gtk/gtkquery.c b/gtk/gtkquery.c index bed173ed43..a69b278606 100644 --- a/gtk/gtkquery.c +++ b/gtk/gtkquery.c @@ -101,47 +101,6 @@ gtk_query_set_location (GtkQuery *query, query->priv->location_uri = g_strdup (uri); } -GList * -gtk_query_get_mime_types (GtkQuery *query) -{ - GList *list, *l; - gchar *mime_type; - - list = NULL; - for (l = query->priv->mime_types; l; l = l->next) - { - mime_type = (gchar*)l->data; - list = g_list_prepend (list, g_strdup (mime_type)); - } - - return list; -} - -void -gtk_query_set_mime_types (GtkQuery *query, - GList *mime_types) -{ - GList *l; - gchar *mime_type; - - g_list_free_full (query->priv->mime_types, g_free); - query->priv->mime_types = NULL; - - for (l = mime_types; l; l = l->next) - { - mime_type = (gchar*)l->data; - query->priv->mime_types = g_list_prepend (query->priv->mime_types, g_strdup (mime_type)); - } -} - -void -gtk_query_add_mime_type (GtkQuery *query, - const gchar *mime_type) -{ - query->priv->mime_types = g_list_prepend (query->priv->mime_types, - g_strdup (mime_type)); -} - static gchar * prepare_string_for_compare (const gchar *string) { diff --git a/gtk/gtkquery.h b/gtk/gtkquery.h index 8f1b1d69de..dd3801228a 100644 --- a/gtk/gtkquery.h +++ b/gtk/gtkquery.h @@ -61,12 +61,6 @@ gchar* gtk_query_get_location (GtkQuery *query); void gtk_query_set_location (GtkQuery *query, const gchar *uri); -GList* gtk_query_get_mime_types (GtkQuery *query); -void gtk_query_set_mime_types (GtkQuery *query, - GList *mime_types); -void gtk_query_add_mime_type (GtkQuery *query, - const gchar *mime_type); - gboolean gtk_query_matches_string (GtkQuery *query, const gchar *string); -- cgit v1.2.1