[gedit] HistoryEntry: remove clear() (dead code)
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] HistoryEntry: remove clear() (dead code)
- Date: Fri, 17 Jul 2020 03:48:43 +0000 (UTC)
commit 777b1d8c7e804c41f0087bd80e392c26ff1395cd
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]