[gnome-logs] Delete unused function in gl-eventviewlist.c



commit 191a1df44eb813170b15a862e59bfbecb4e66b19
Author: Jonathan Kang <jonathan121537 gmail com>
Date:   Mon Oct 17 17:48:45 2016 +0800

    Delete unused function in gl-eventviewlist.c
    
    In commit b86a50a312b08dadbd58e04db351c38c65927b46, search matches was
    moved to model. So gl_event_view_list_search is no longer needed.

 src/gl-eventviewlist.c |   19 -------------------
 src/gl-eventviewlist.h |    1 -
 2 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/src/gl-eventviewlist.c b/src/gl-eventviewlist.c
index eef15c1..ad3f5bd 100644
--- a/src/gl-eventviewlist.c
+++ b/src/gl-eventviewlist.c
@@ -762,25 +762,6 @@ gl_event_view_list_init (GlEventViewList *view)
                       view);
 }
 
-void
-gl_event_view_list_search (GlEventViewList *view,
-                           const gchar *needle)
-{
-    GlEventViewListPrivate *priv;
-
-    g_return_if_fail (GL_EVENT_VIEW_LIST (view));
-
-    priv = gl_event_view_list_get_instance_private (view);
-
-    g_free (priv->search_text);
-    priv->search_text = g_strdup (needle);
-
-    /* for search, we need all entries - tell the model to fetch them */
-    gl_journal_model_fetch_more_entries (priv->journal_model, TRUE);
-
-    gtk_list_box_invalidate_filter (priv->entries_box);
-}
-
 GtkWidget *
 gl_event_view_list_new (void)
 {
diff --git a/src/gl-eventviewlist.h b/src/gl-eventviewlist.h
index df2cbd6..7d951b4 100644
--- a/src/gl-eventviewlist.h
+++ b/src/gl-eventviewlist.h
@@ -30,7 +30,6 @@ G_BEGIN_DECLS
 G_DECLARE_FINAL_TYPE (GlEventViewList, gl_event_view_list, GL, EVENT_VIEW_LIST, GtkListBox)
 
 GtkWidget * gl_event_view_list_new (void);
-void gl_event_view_list_search (GlEventViewList *view, const gchar *needle);
 GlJournalEntry *gl_event_view_list_get_detail_entry (GlEventViewList *view);
 gboolean gl_event_view_list_handle_search_event (GlEventViewList *view,
                                                  GAction *action,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]