[nautilus/wip/antoniof/pointer-array-for-mime-type-filter: 3/4] query: Drop unused ::add_mime_type() API
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/pointer-array-for-mime-type-filter: 3/4] query: Drop unused ::add_mime_type() API
- Date: Wed, 12 Dec 2018 15:16:01 +0000 (UTC)
commit 3feda7826615a93613502d9679a8bc3c24c01342
Author: António Fernandes <antoniof gnome org>
Date: Thu Dec 6 12:41:52 2018 +0000
query: Drop unused ::add_mime_type() API
Unused since cb7c77a8acf857c3bf16e73bc7beba4b9d09faac
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.
src/nautilus-query.c | 11 -----------
src/nautilus-query.h | 1 -
2 files changed, 12 deletions(-)
---
diff --git a/src/nautilus-query.c b/src/nautilus-query.c
index e6802c314..c1a01f142 100644
--- a/src/nautilus-query.c
+++ b/src/nautilus-query.c
@@ -484,17 +484,6 @@ nautilus_query_set_mime_types (NautilusQuery *query,
g_object_notify (G_OBJECT (query), "mimetypes");
}
-void
-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");
-}
-
gboolean
nautilus_query_get_show_hidden_files (NautilusQuery *query)
{
diff --git a/src/nautilus-query.h b/src/nautilus-query.h
index e5d6c19df..b600d3653 100644
--- a/src/nautilus-query.h
+++ b/src/nautilus-query.h
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]