GtkSearchEngine: Remove unused code

Nothing ever uses or emits the hits-subtracted signal.
Nautilus dropped it a few years ago. Time to follow suit.
This commit is contained in:
Matthias Clasen 2015-06-18 17:08:09 -04:00
parent 1d63335c8e
commit d260d2c466
2 changed files with 0 additions and 26 deletions

View File

@ -47,7 +47,6 @@ struct _GtkSearchEnginePrivate {
enum
{
HITS_ADDED,
HITS_SUBTRACTED,
FINISHED,
ERROR,
LAST_SIGNAL
@ -147,16 +146,6 @@ _gtk_search_engine_class_init (GtkSearchEngineClass *class)
G_TYPE_NONE, 1,
G_TYPE_POINTER);
signals[HITS_SUBTRACTED] =
g_signal_new ("hits-subtracted",
G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkSearchEngineClass, hits_subtracted),
NULL, NULL,
g_cclosure_marshal_VOID__POINTER,
G_TYPE_NONE, 1,
G_TYPE_POINTER);
signals[FINISHED] =
g_signal_new ("finished",
G_TYPE_FROM_CLASS (class),
@ -395,17 +384,6 @@ _gtk_search_engine_hits_added (GtkSearchEngine *engine,
g_signal_emit (engine, signals[HITS_ADDED], 0, hits);
}
void
_gtk_search_engine_hits_subtracted (GtkSearchEngine *engine,
GList *hits)
{
g_return_if_fail (GTK_IS_SEARCH_ENGINE (engine));
g_signal_emit (engine, signals[HITS_SUBTRACTED], 0, hits);
}
void
_gtk_search_engine_finished (GtkSearchEngine *engine)
{

View File

@ -67,8 +67,6 @@ struct _GtkSearchEngineClass
/* Signals */
void (*hits_added) (GtkSearchEngine *engine,
GList *hits);
void (*hits_subtracted) (GtkSearchEngine *engine,
GList *hits);
void (*finished) (GtkSearchEngine *engine);
void (*error) (GtkSearchEngine *engine,
const gchar *error_message);
@ -85,8 +83,6 @@ void _gtk_search_engine_stop (GtkSearchEngine *engine);
void _gtk_search_engine_hits_added (GtkSearchEngine *engine,
GList *hits);
void _gtk_search_engine_hits_subtracted (GtkSearchEngine *engine,
GList *hits);
void _gtk_search_engine_finished (GtkSearchEngine *engine);
void _gtk_search_engine_error (GtkSearchEngine *engine,
const gchar *error_message);