Commit b630fa63 authored by Erwan Tulou's avatar Erwan Tulou

skins2: remove unnecessary lookup

parent 1c41fce0
...@@ -209,9 +209,6 @@ void Playtree::onAppend( playlist_add_t *p_add ) ...@@ -209,9 +209,6 @@ void Playtree::onAppend( playlist_add_t *p_add )
Iterator node = findById( p_add->i_node ); Iterator node = findById( p_add->i_node );
if( node != end() ) if( node != end() )
{
Iterator item = findById( p_add->i_item );
if( item == end() )
{ {
playlist_Lock( m_pPlaylist ); playlist_Lock( m_pPlaylist );
playlist_item_t *p_item = playlist_ItemGetById( playlist_item_t *p_item = playlist_ItemGetById(
...@@ -228,7 +225,6 @@ void Playtree::onAppend( playlist_add_t *p_add ) ...@@ -228,7 +225,6 @@ void Playtree::onAppend( playlist_add_t *p_add )
p_item ); p_item );
playlist_Unlock( m_pPlaylist ); playlist_Unlock( m_pPlaylist );
} }
}
tree_update descr; tree_update descr;
descr.i_id = p_add->i_item; descr.i_id = p_add->i_item;
descr.i_parent = p_add->i_node; descr.i_parent = p_add->i_node;
......
Markdown is supported
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