[gtk+/gtk-3-16] GtkSearchEngine: Drop unused functionality
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-16] GtkSearchEngine: Drop unused functionality
- Date: Mon, 11 May 2015 18:24:07 +0000 (UTC)
commit 1062be11159c076a558ab645450f3cf2ee893fc0
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 1 12:44:11 2015 -0400
GtkSearchEngine: Drop unused functionality
gtk/gtksearchengine.c | 9 ---------
gtk/gtksearchengine.h | 4 +---
gtk/gtksearchenginequartz.c | 7 -------
gtk/gtksearchenginesimple.c | 7 -------
gtk/gtksearchenginetracker.c | 7 -------
5 files changed, 1 insertions(+), 33 deletions(-)
---
diff --git a/gtk/gtksearchengine.c b/gtk/gtksearchengine.c
index 007b888..1ae5cc6 100644
--- a/gtk/gtksearchengine.c
+++ b/gtk/gtksearchengine.c
@@ -149,15 +149,6 @@ _gtk_search_engine_stop (GtkSearchEngine *engine)
GTK_SEARCH_ENGINE_GET_CLASS (engine)->stop (engine);
}
-gboolean
-_gtk_search_engine_is_indexed (GtkSearchEngine *engine)
-{
- g_return_val_if_fail (GTK_IS_SEARCH_ENGINE (engine), FALSE);
- g_return_val_if_fail (GTK_SEARCH_ENGINE_GET_CLASS (engine)->is_indexed != NULL, FALSE);
-
- return GTK_SEARCH_ENGINE_GET_CLASS (engine)->is_indexed (engine);
-}
-
void
_gtk_search_engine_hits_added (GtkSearchEngine *engine,
GList *hits)
diff --git a/gtk/gtksearchengine.h b/gtk/gtksearchengine.h
index 86366c1..fc4b6d6 100644
--- a/gtk/gtksearchengine.h
+++ b/gtk/gtksearchengine.h
@@ -37,7 +37,7 @@ typedef struct _GtkSearchEngine GtkSearchEngine;
typedef struct _GtkSearchEngineClass GtkSearchEngineClass;
typedef struct _GtkSearchEnginePrivate GtkSearchEnginePrivate;
-struct _GtkSearchEngine
+struct _GtkSearchEngine
{
GObject parent;
@@ -53,7 +53,6 @@ struct _GtkSearchEngineClass
GtkQuery *query);
void (*start) (GtkSearchEngine *engine);
void (*stop) (GtkSearchEngine *engine);
- gboolean (*is_indexed) (GtkSearchEngine *engine);
/* Signals */
void (*hits_added) (GtkSearchEngine *engine,
@@ -73,7 +72,6 @@ void _gtk_search_engine_set_query (GtkSearchEngine *engine,
GtkQuery *query);
void _gtk_search_engine_start (GtkSearchEngine *engine);
void _gtk_search_engine_stop (GtkSearchEngine *engine);
-gboolean _gtk_search_engine_is_indexed (GtkSearchEngine *engine);
void _gtk_search_engine_hits_added (GtkSearchEngine *engine,
GList *hits);
diff --git a/gtk/gtksearchenginequartz.c b/gtk/gtksearchenginequartz.c
index fc8370d..42f32ee 100644
--- a/gtk/gtksearchenginequartz.c
+++ b/gtk/gtksearchenginequartz.c
@@ -179,12 +179,6 @@ gtk_search_engine_quartz_stop (GtkSearchEngine *engine)
QUARTZ_POOL_RELEASE;
}
-static gboolean
-gtk_search_engine_quartz_is_indexed (GtkSearchEngine *engine)
-{
- return TRUE;
-}
-
static void
gtk_search_engine_quartz_set_query (GtkSearchEngine *engine,
GtkQuery *query)
@@ -228,7 +222,6 @@ _gtk_search_engine_quartz_class_init (GtkSearchEngineQuartzClass *class)
engine_class->set_query = gtk_search_engine_quartz_set_query;
engine_class->start = gtk_search_engine_quartz_start;
engine_class->stop = gtk_search_engine_quartz_stop;
- engine_class->is_indexed = gtk_search_engine_quartz_is_indexed;
}
static void
diff --git a/gtk/gtksearchenginesimple.c b/gtk/gtksearchenginesimple.c
index 5c8b63d..47b3231 100644
--- a/gtk/gtksearchenginesimple.c
+++ b/gtk/gtksearchenginesimple.c
@@ -321,12 +321,6 @@ gtk_search_engine_simple_stop (GtkSearchEngine *engine)
}
}
-static gboolean
-gtk_search_engine_simple_is_indexed (GtkSearchEngine *engine)
-{
- return FALSE;
-}
-
static void
gtk_search_engine_simple_set_query (GtkSearchEngine *engine,
GtkQuery *query)
@@ -357,7 +351,6 @@ _gtk_search_engine_simple_class_init (GtkSearchEngineSimpleClass *class)
engine_class->set_query = gtk_search_engine_simple_set_query;
engine_class->start = gtk_search_engine_simple_start;
engine_class->stop = gtk_search_engine_simple_stop;
- engine_class->is_indexed = gtk_search_engine_simple_is_indexed;
}
static void
diff --git a/gtk/gtksearchenginetracker.c b/gtk/gtksearchenginetracker.c
index d1505c1..8d9dc37 100644
--- a/gtk/gtksearchenginetracker.c
+++ b/gtk/gtksearchenginetracker.c
@@ -411,12 +411,6 @@ gtk_search_engine_tracker_stop (GtkSearchEngine *engine)
}
}
-static gboolean
-gtk_search_engine_tracker_is_indexed (GtkSearchEngine *engine)
-{
- return TRUE;
-}
-
static void
gtk_search_engine_tracker_set_query (GtkSearchEngine *engine,
GtkQuery *query)
@@ -447,7 +441,6 @@ _gtk_search_engine_tracker_class_init (GtkSearchEngineTrackerClass *class)
engine_class->set_query = gtk_search_engine_tracker_set_query;
engine_class->start = gtk_search_engine_tracker_start;
engine_class->stop = gtk_search_engine_tracker_stop;
- engine_class->is_indexed = gtk_search_engine_tracker_is_indexed;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]