diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-06-18 17:08:09 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-06-18 17:08:09 -0400 |
commit | d260d2c46685e645e48edd5b3b7c19e05202d2a6 (patch) | |
tree | fea9dcd73671a350a44514da3ba5585ea405b0e3 /gtk/gtksearchengine.c | |
parent | 1d63335c8e51aee978521afdc77880a912b9f743 (diff) | |
download | gtk+-d260d2c46685e645e48edd5b3b7c19e05202d2a6.tar.gz |
GtkSearchEngine: Remove unused code
Nothing ever uses or emits the hits-subtracted signal.
Nautilus dropped it a few years ago. Time to follow suit.
Diffstat (limited to 'gtk/gtksearchengine.c')
-rw-r--r-- | gtk/gtksearchengine.c | 22 |
1 files changed, 0 insertions, 22 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) { |