From d260d2c46685e645e48edd5b3b7c19e05202d2a6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 18 Jun 2015 17:08:09 -0400 Subject: [PATCH] GtkSearchEngine: Remove unused code Nothing ever uses or emits the hits-subtracted signal. Nautilus dropped it a few years ago. Time to follow suit. --- gtk/gtksearchengine.c | 22 ---------------------- gtk/gtksearchengine.h | 4 ---- 2 files changed, 26 deletions(-) diff --git a/gtk/gtksearchengine.c b/gtk/gtksearchengine.c index 5e8a19c1de..553f0fe344 100644 --- a/gtk/gtksearchengine.c +++ b/gtk/gtksearchengine.c @@ -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) { diff --git a/gtk/gtksearchengine.h b/gtk/gtksearchengine.h index 8f86cd8e4d..39a9fb6649 100644 --- a/gtk/gtksearchengine.h +++ b/gtk/gtksearchengine.h @@ -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);