Commit 3feda782 authored by António Fernandes's avatar António Fernandes 🐚 Committed by Ernestas Kulik

query: Drop unused ::add_mime_type() API

Unused since cb7c77a8

So, let's limit the MIME type filter API to a setter and a getters. This
will allow porting to an immutable, refcounted GPtrArray next commit.
parent d92e1133
......@@ -484,17 +484,6 @@ nautilus_query_set_mime_types (NautilusQuery *query,
g_object_notify (G_OBJECT (query), "mimetypes");
nautilus_query_add_mime_type (NautilusQuery *query,
const char *mime_type)
g_return_if_fail (NAUTILUS_IS_QUERY (query));
query->mime_types = g_list_append (query->mime_types, g_strdup (mime_type));
g_object_notify (G_OBJECT (query), "mimetypes");
nautilus_query_get_show_hidden_files (NautilusQuery *query)
......@@ -59,7 +59,6 @@ void nautilus_query_set_location (NautilusQuery *query,
GList * nautilus_query_get_mime_types (NautilusQuery *query);
void nautilus_query_set_mime_types (NautilusQuery *query, GList *mime_types);
void nautilus_query_add_mime_type (NautilusQuery *query, const char *mime_type);
NautilusQuerySearchContent nautilus_query_get_search_content (NautilusQuery *query);
void nautilus_query_set_search_content (NautilusQuery *query,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment