]> git.sesse.net Git - vlc/commitdiff
playlist: Remove playlist_GetAllEnabledChildren as it wasn't used.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 15 Jul 2008 11:15:15 +0000 (13:15 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 15 Jul 2008 11:21:35 +0000 (13:21 +0200)
src/playlist/playlist_internal.h
src/playlist/tree.c

index e4369e370b098512ff1f59ce65f43cd44f198276..f835bf193f2c239e1c2e28e00a54ad1c636135e1 100644 (file)
@@ -99,9 +99,6 @@ void playlist_SendAddNotify( playlist_t *p_playlist, int i_item_id,
                              int i_node_id, bool b_signal );
 
 /* Tree walking */
-int playlist_GetAllEnabledChildren( playlist_t *p_playlist,
-                                    playlist_item_t *p_node,
-                                    playlist_item_t ***ppp_items );
 playlist_item_t *playlist_GetNextLeaf( playlist_t *p_playlist,
                                     playlist_item_t *p_root,
                                     playlist_item_t *, bool, bool );
index bda4c49709119e09340dc479e1a6fb9df0a9acc5..bfe9e1fdb6007b0581912a7f5b0f1389d9a56d66 100644 (file)
@@ -402,24 +402,6 @@ playlist_item_t *playlist_GetLastLeaf(playlist_t *p_playlist,
     return NULL;
 }
 
-int playlist_GetAllEnabledChildren( playlist_t *p_playlist,
-                                    playlist_item_t *p_node,
-                                    playlist_item_t ***ppp_items )
-{
-    int i_count = 0;
-    playlist_item_t *p_next = NULL;
-    while( 1 )
-    {
-        p_next = playlist_GetNextLeaf( p_playlist, p_node,
-                                       p_next, true, false );
-        if( p_next )
-            INSERT_ELEM( *ppp_items, i_count, i_count, p_next );
-        else
-            break;
-    }
-    return i_count;
-}
-
 /**
  * Finds the next item to play
  *