forked from AuroraMiddleware/gtk
GtkSearchEngine: Drop unused functionality
This commit is contained in:
parent
578043f97e
commit
4b50836442
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user