changeset 36084:64825e4a3fed

Remove pointless code. The URL dialog widget will be destroyed after a selection has been made, and urlEntries will be freed and rebuilt every time the URL dialog widget is created (newly). So it makes no sense to prepend any data to the GList that never will be used.
author ib
date Mon, 29 Apr 2013 11:21:23 +0000
parents 3705b6e4ba07
children d3e8f4f71514
files gui/dialog/url.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/url.c	Mon Apr 29 10:30:41 2013 +0000
+++ b/gui/dialog/url.c	Mon Apr 29 11:21:23 2013 +0000
@@ -58,8 +58,6 @@
                 str = tmp;
             }
 
-            urlEntries = g_list_prepend(urlEntries, (gchar *)str);
-
             item      = calloc(1, sizeof(urlItem));
             item->url = gstrdup(str);
             listMgr(URLLIST_ITEM_ADD, item);