]> git.sesse.net Git - vlc/commitdiff
Remove playlist_NodeDump as nobody is using this debuging function.
authorRémi Duraffort <ivoire@videolan.org>
Mon, 7 Apr 2008 20:11:29 +0000 (22:11 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Mon, 7 Apr 2008 20:41:07 +0000 (22:41 +0200)
include/vlc_playlist.h
src/libvlc.sym
src/playlist/tree.c

index 9e88a68759156a6a5aa7518fcb2a9529a2fe507c..8df2897c9ad63f48e3059feafc5d86df280c4293 100644 (file)
@@ -380,7 +380,6 @@ VLC_EXPORT( int, playlist_LiveSearchUpdate, (playlist_t *, playlist_item_t *, co
 /********************************************************
  * Tree management
  ********************************************************/
-VLC_EXPORT(void, playlist_NodeDump, ( playlist_t *p_playlist, playlist_item_t *p_item, int i_level ) );
 VLC_EXPORT( int, playlist_NodeChildrenCount, (playlist_t *,playlist_item_t* ) );
 
 /* Node management */
index 541ddcbcb4f7db439dbed7b28cf22f551e4f928b..bafd0a1f9234c7d6452343e6d6a06a62664fb88b 100644 (file)
@@ -241,7 +241,6 @@ playlist_NodeAppend
 playlist_NodeChildrenCount
 playlist_NodeCreate
 playlist_NodeDelete
-playlist_NodeDump
 playlist_NodeEmpty
 playlist_NodeInsert
 playlist_NodeRemoveItem
index 35f50cff7dbcce0a4e9dc17c4f496ddf95904229..dca2c1f8a4d3495d6f3c251e0b55dd3fa700b4d6 100644 (file)
@@ -48,7 +48,7 @@ playlist_item_t *GetPrevItem( playlist_t *p_playlist,
  * Create a playlist node
  *
  * \param p_playlist the playlist
- * \paam psz_name the name of the node
+ * \param psz_name the name of the node
  * \param p_parent the parent node to attach to or NULL if no attach
  * \param p_flags miscellaneous flags
  * \param p_input the input_item to attach to or NULL if it has to be created
@@ -666,37 +666,3 @@ playlist_item_t *GetPrevItem( playlist_t *p_playlist,
     }
     return NULL;
 }
-
-/* Dump the contents of a node */
-void playlist_NodeDump( playlist_t *p_playlist, playlist_item_t *p_item,
-                        int i_level )
-{
-    char str[512];
-    int i;
-
-    if( i_level == 1 )
-    {
-        msg_Dbg( p_playlist, "%s (%i)",
-                        p_item->p_input->psz_name, p_item->i_children );
-    }
-
-    if( p_item->i_children == -1 )
-    {
-        return;
-    }
-
-    for( i = 0; i< p_item->i_children; i++ )
-    {
-        memset( str, 32, 512 );
-        sprintf( str + 2 * i_level , "%s (%i)",
-                                p_item->pp_children[i]->p_input->psz_name,
-                                p_item->pp_children[i]->i_children );
-        msg_Dbg( p_playlist, "%s",str );
-        if( p_item->pp_children[i]->i_children >= 0 )
-        {
-            playlist_NodeDump( p_playlist, p_item->pp_children[i],
-                              i_level + 1 );
-        }
-    }
-    return;
-}