forked from AuroraMiddleware/gtk
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:
parent
1d63335c8e
commit
d260d2c466
@ -47,7 +47,6 @@ struct _GtkSearchEnginePrivate {
|
|||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
HITS_ADDED,
|
HITS_ADDED,
|
||||||
HITS_SUBTRACTED,
|
|
||||||
FINISHED,
|
FINISHED,
|
||||||
ERROR,
|
ERROR,
|
||||||
LAST_SIGNAL
|
LAST_SIGNAL
|
||||||
@ -147,16 +146,6 @@ _gtk_search_engine_class_init (GtkSearchEngineClass *class)
|
|||||||
G_TYPE_NONE, 1,
|
G_TYPE_NONE, 1,
|
||||||
G_TYPE_POINTER);
|
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] =
|
signals[FINISHED] =
|
||||||
g_signal_new ("finished",
|
g_signal_new ("finished",
|
||||||
G_TYPE_FROM_CLASS (class),
|
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);
|
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
|
void
|
||||||
_gtk_search_engine_finished (GtkSearchEngine *engine)
|
_gtk_search_engine_finished (GtkSearchEngine *engine)
|
||||||
{
|
{
|
||||||
|
@ -67,8 +67,6 @@ struct _GtkSearchEngineClass
|
|||||||
/* Signals */
|
/* Signals */
|
||||||
void (*hits_added) (GtkSearchEngine *engine,
|
void (*hits_added) (GtkSearchEngine *engine,
|
||||||
GList *hits);
|
GList *hits);
|
||||||
void (*hits_subtracted) (GtkSearchEngine *engine,
|
|
||||||
GList *hits);
|
|
||||||
void (*finished) (GtkSearchEngine *engine);
|
void (*finished) (GtkSearchEngine *engine);
|
||||||
void (*error) (GtkSearchEngine *engine,
|
void (*error) (GtkSearchEngine *engine,
|
||||||
const gchar *error_message);
|
const gchar *error_message);
|
||||||
@ -85,8 +83,6 @@ void _gtk_search_engine_stop (GtkSearchEngine *engine);
|
|||||||
|
|
||||||
void _gtk_search_engine_hits_added (GtkSearchEngine *engine,
|
void _gtk_search_engine_hits_added (GtkSearchEngine *engine,
|
||||||
GList *hits);
|
GList *hits);
|
||||||
void _gtk_search_engine_hits_subtracted (GtkSearchEngine *engine,
|
|
||||||
GList *hits);
|
|
||||||
void _gtk_search_engine_finished (GtkSearchEngine *engine);
|
void _gtk_search_engine_finished (GtkSearchEngine *engine);
|
||||||
void _gtk_search_engine_error (GtkSearchEngine *engine,
|
void _gtk_search_engine_error (GtkSearchEngine *engine,
|
||||||
const gchar *error_message);
|
const gchar *error_message);
|
||||||
|
Loading…
Reference in New Issue
Block a user