[gthumb] history: no need to remove other occurrences of the current location
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] history: no need to remove other occurrences of the current location
- Date: Sat, 4 Apr 2015 19:28:23 +0000 (UTC)
commit 3faab2cf793fac440862c55585d43cb2c972cc49
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Apr 1 21:32:15 2015 +0200
history: no need to remove other occurrences of the current location
gthumb/gth-browser.c | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 89c8a8b..1134895 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -578,19 +578,6 @@ _gth_browser_history_add (GthBrowser *browser,
scan = next;
}
- /* remove all the occurrences of 'file' from the history */
- for (scan = browser->priv->history; scan; /* void */) {
- GList *next = scan->next;
- GFile *file_in_history = scan->data;
-
- if (_g_file_equal_uris (file, file_in_history)) {
- browser->priv->history = g_list_remove_link (browser->priv->history, scan);
- _g_object_list_unref (scan);
- }
-
- scan = next;
- }
-
browser->priv->history = g_list_prepend (browser->priv->history, g_object_ref (file));
browser->priv->history_current = browser->priv->history;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]