GtkQuery: Drop unused mimetype functions

These are not used, so drop them.
This commit is contained in:
Matthias Clasen 2015-05-16 00:47:57 -04:00
parent 41fee7e569
commit 924a8eb405
2 changed files with 0 additions and 47 deletions

View File

@ -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)
{

View File

@ -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);