[gtk+] GtkSearchEngine: Remove unused code
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkSearchEngine: Remove unused code
- Date: Thu, 18 Jun 2015 21:08:50 +0000 (UTC)
commit d260d2c46685e645e48edd5b3b7c19e05202d2a6
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jun 18 17:08:09 2015 -0400
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, 0 insertions(+), 26 deletions(-)
---
diff --git a/gtk/gtksearchengine.c b/gtk/gtksearchengine.c
index 5e8a19c..553f0fe 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 8f86cd8..39a9fb6 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]