[MPlayer-cvslog] r36029 - trunk/gui/dialog/fileselect.c
ib
subversion at mplayerhq.hu
Thu Mar 21 10:36:49 CET 2013
Author: ib
Date: Thu Mar 21 10:36:48 2013
New Revision: 36029
Log:
Remove pointless code.
The file selector widget will be destroyed after a selection has been
made, and fsTopList_items will be freed and rebuilt every time the file
selector 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/fileselect.c
Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c Thu Mar 21 10:15:06 2013 (r36028)
+++ trunk/gui/dialog/fileselect.c Thu Mar 21 10:36:48 2013 (r36029)
@@ -502,8 +502,7 @@ static void fs_Up_released( GtkButton *
static void fs_Ok_released( GtkButton * button, gpointer user_data )
{
char * fsSelectedDirectory;
- GList * item;
- int i = 1, l;
+ int l;
struct stat fs;
gchar * selected;
@@ -558,18 +557,6 @@ static void fs_Ok_released( GtkButton *
HideFileSelect();
- item=fsTopList_items;
- while( item )
- {
- if ( !strcmp( item->data,fsSelectedDirectoryUtf8 ) ) i=0;
- item=item->next;
- }
- if ( i )
- {
- fsTopList_items=g_list_prepend( fsTopList_items,fsSelectedDirectoryUtf8 );
- g_hash_table_insert(fsPathTable, strdup(fsSelectedDirectoryUtf8), strdup(fsSelectedDirectory));
- }
-
free(fsSelectedDirectory);
if ( uiLoadPlay ) { uiLoadPlay=False; uiEvent( evPlay,0 ); }
More information about the MPlayer-cvslog
mailing list