[gedit/zbrown/deteplification-src: 457/633] HistoryEntry: remove clear() (dead code)




commit 904cb935e2238e84cef1d2070f984b38dd3f8247
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Jul 17 05:24:18 2020 +0200

    HistoryEntry: remove clear() (dead code)

 gedit/gedit-history-entry.c | 10 ----------
 gedit/gedit-history-entry.h |  2 --
 2 files changed, 12 deletions(-)
---
diff --git a/gedit/gedit-history-entry.c b/gedit/gedit-history-entry.c
index bdb9adc14..170da50aa 100644
--- a/gedit/gedit-history-entry.c
+++ b/gedit/gedit-history-entry.c
@@ -341,16 +341,6 @@ gedit_history_entry_prepend_text (GeditHistoryEntry *entry,
        gedit_history_entry_save_history (entry);
 }
 
-void
-gedit_history_entry_clear (GeditHistoryEntry *entry)
-{
-       g_return_if_fail (GEDIT_IS_HISTORY_ENTRY (entry));
-
-       gtk_combo_box_text_remove_all (GTK_COMBO_BOX_TEXT (entry));
-
-       gedit_history_entry_save_history (entry);
-}
-
 static void
 gedit_history_entry_init (GeditHistoryEntry *entry)
 {
diff --git a/gedit/gedit-history-entry.h b/gedit/gedit-history-entry.h
index 553fa7b9a..0147ed1a5 100644
--- a/gedit/gedit-history-entry.h
+++ b/gedit/gedit-history-entry.h
@@ -36,8 +36,6 @@ GtkWidget *   gedit_history_entry_new                         (const gchar *history_id,
 void           gedit_history_entry_prepend_text                (GeditHistoryEntry *entry,
                                                                 const gchar       *text);
 
-void           gedit_history_entry_clear                       (GeditHistoryEntry *entry);
-
 void           gedit_history_entry_set_history_length          (GeditHistoryEntry *entry,
                                                                 guint              max_saved);
 


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