Commit 630160db authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

playlist: remove unused argument

parent 70a5aff3
......@@ -753,7 +753,7 @@ static void AddItem( playlist_t *p_playlist, playlist_item_t *p_item,
PL_ASSERT_LOCKED;
ARRAY_APPEND(p_playlist->items, p_item);
playlist_NodeInsert( p_playlist, p_item, p_node, i_pos );
playlist_NodeInsert( p_node, p_item, i_pos );
playlist_SendAddNotify( p_playlist, p_item );
}
......
......@@ -124,8 +124,7 @@ int playlist_InsertInputItemTree ( playlist_t *,
playlist_item_t *, input_item_node_t *, int, bool );
/* Tree walking */
int playlist_NodeInsert(playlist_t *, playlist_item_t*, playlist_item_t *,
int);
int playlist_NodeInsert(playlist_item_t*, playlist_item_t *, int);
void playlist_ItemRelease( playlist_t *, playlist_item_t * );
......
......@@ -77,7 +77,7 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist,
p_item->i_children = 0;
if( p_parent != NULL )
playlist_NodeInsert( p_playlist, p_item, p_parent, i_pos );
playlist_NodeInsert( p_parent, p_item, i_pos );
playlist_SendAddNotify( p_playlist, p_item );
p_item->i_flags |= i_flags;
......@@ -150,13 +150,9 @@ void playlist_NodeDelete( playlist_t *p_playlist, playlist_item_t *p_root,
playlist_ItemRelease( p_playlist, p_root );
}
int playlist_NodeInsert( playlist_t *p_playlist,
playlist_item_t *p_item,
playlist_item_t *p_parent,
int playlist_NodeInsert( playlist_item_t *p_parent, playlist_item_t *p_item,
int i_position )
{
PL_ASSERT_LOCKED;
(void)p_playlist;
assert( p_parent && p_parent->i_children != -1 );
if( i_position == -1 ) i_position = p_parent->i_children ;
assert( i_position <= p_parent->i_children);
......
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