[vlc-devel] commit: Remove playlist_NodeDump as nobody is using this debuging function. ( Rémi Duraffort )
git version control
git at videolan.org
Mon Apr 7 22:40:36 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Apr 7 22:11:29 2008 +0200| [349c167bbadcb290e400ca15bf6fd8f2c9c96773]
Remove playlist_NodeDump as nobody is using this debuging function.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=349c167bbadcb290e400ca15bf6fd8f2c9c96773
---
include/vlc_playlist.h | 1 -
src/libvlc.sym | 1 -
src/playlist/tree.c | 36 +-----------------------------------
3 files changed, 1 insertions(+), 37 deletions(-)
diff --git a/include/vlc_playlist.h b/include/vlc_playlist.h
index 9e88a68..8df2897 100644
--- a/include/vlc_playlist.h
+++ b/include/vlc_playlist.h
@@ -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 */
diff --git a/src/libvlc.sym b/src/libvlc.sym
index 541ddcb..bafd0a1 100644
--- a/src/libvlc.sym
+++ b/src/libvlc.sym
@@ -241,7 +241,6 @@ playlist_NodeAppend
playlist_NodeChildrenCount
playlist_NodeCreate
playlist_NodeDelete
-playlist_NodeDump
playlist_NodeEmpty
playlist_NodeInsert
playlist_NodeRemoveItem
diff --git a/src/playlist/tree.c b/src/playlist/tree.c
index 35f50cf..dca2c1f 100644
--- a/src/playlist/tree.c
+++ b/src/playlist/tree.c
@@ -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;
-}
More information about the vlc-devel
mailing list