[MPlayer-cvslog] r36178 - trunk/gui/dialog/url.c
ib
subversion at mplayerhq.hu
Mon Apr 29 13:21:23 CEST 2013
Author: ib
Date: Mon Apr 29 13:21:23 2013
New Revision: 36178
Log:
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.
Modified:
trunk/gui/dialog/url.c
Modified: trunk/gui/dialog/url.c
==============================================================================
--- trunk/gui/dialog/url.c Mon Apr 29 12:30:41 2013 (r36177)
+++ trunk/gui/dialog/url.c Mon Apr 29 13:21:23 2013 (r36178)
@@ -58,8 +58,6 @@ static void button_clicked(GtkButton *bu
str = tmp;
}
- urlEntries = g_list_prepend(urlEntries, (gchar *)str);
-
item = calloc(1, sizeof(urlItem));
item->url = gstrdup(str);
listMgr(URLLIST_ITEM_ADD, item);
More information about the MPlayer-cvslog
mailing list