Commit 04cfbc32 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

Remove unused i_enabled member from the playlist struct

parent b2881da9
...@@ -170,8 +170,6 @@ struct playlist_t ...@@ -170,8 +170,6 @@ struct playlist_t
} ** pp_sds; } ** pp_sds;
int i_sds; /**< Number of service discovery modules */ int i_sds; /**< Number of service discovery modules */
int i_enabled; /**< How many items are enabled ? */
playlist_item_array_t items; /**< Arrays of items */ playlist_item_array_t items; /**< Arrays of items */
playlist_item_array_t all_items; /**< Array of items and nodes */ playlist_item_array_t all_items; /**< Array of items and nodes */
......
...@@ -508,7 +508,7 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu, ...@@ -508,7 +508,7 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu,
addMIMStaticEntry( p_intf, menu, qtr( "Play" ), "", addMIMStaticEntry( p_intf, menu, qtr( "Play" ), "",
":/pixmaps/play_16px.png", SLOT( togglePlayPause() ) ); ":/pixmaps/play_16px.png", SLOT( togglePlayPause() ) );
} }
else if( THEPL->items.i_size && THEPL->i_enabled ) else if( THEPL->items.i_size )
addMIMStaticEntry( p_intf, menu, qtr( "Play" ), "", addMIMStaticEntry( p_intf, menu, qtr( "Play" ), "",
":/pixmaps/play_16px.png", SLOT( togglePlayPause() ) ); ":/pixmaps/play_16px.png", SLOT( togglePlayPause() ) );
......
...@@ -638,7 +638,7 @@ void Interface::OnPlayStream( void ) ...@@ -638,7 +638,7 @@ void Interface::OnPlayStream( void )
vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE ); vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( p_playlist == NULL ) return; if( p_playlist == NULL ) return;
if( p_playlist->i_size && p_playlist->i_enabled ) if( p_playlist->i_size )
{ {
vlc_value_t state; vlc_value_t state;
......
...@@ -274,11 +274,6 @@ void ItemInfoDialog::OnOk() ...@@ -274,11 +274,6 @@ void ItemInfoDialog::OnOk()
if( p_playlist != NULL ) if( p_playlist != NULL )
{ {
b_state = SendMessage( enabled_checkbox, BM_GETCHECK, 0, 0 ); b_state = SendMessage( enabled_checkbox, BM_GETCHECK, 0, 0 );
if( b_old_enabled == false && (b_state & BST_CHECKED) )
p_playlist->i_enabled ++;
else if( b_old_enabled == true && (b_state & BST_UNCHECKED) )
p_playlist->i_enabled --;
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
} }
......
...@@ -1080,7 +1080,7 @@ void Interface::PlayStream() ...@@ -1080,7 +1080,7 @@ void Interface::PlayStream()
FIND_ANYWHERE ); FIND_ANYWHERE );
if( p_playlist == NULL ) return; if( p_playlist == NULL ) return;
if( !playlist_IsEmpty(p_playlist) && p_playlist->i_enabled ) if( !playlist_IsEmpty(p_playlist) )
{ {
vlc_value_t state; vlc_value_t state;
......
...@@ -808,7 +808,6 @@ static void AddItem( playlist_t *p_playlist, playlist_item_t *p_item, ...@@ -808,7 +808,6 @@ static void AddItem( playlist_t *p_playlist, playlist_item_t *p_item,
{ {
ARRAY_APPEND(p_playlist->items, p_item); ARRAY_APPEND(p_playlist->items, p_item);
ARRAY_APPEND(p_playlist->all_items, p_item); ARRAY_APPEND(p_playlist->all_items, p_item);
p_playlist->i_enabled ++;
if( i_pos == PLAYLIST_END ) if( i_pos == PLAYLIST_END )
playlist_NodeAppend( p_playlist, p_item, p_node ); playlist_NodeAppend( p_playlist, p_item, p_node );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment