[vlc-devel] commit: Removed unused playlist_ItemNew(WithType). (Laurent Aimar )

git version control git at videolan.org
Sun Jan 18 15:15:15 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jan 18 14:44:43 2009 +0100| [0783dcb411843e51b519872e9c7ca06fa51561d2] | committer: Laurent Aimar 

Removed unused playlist_ItemNew(WithType).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0783dcb411843e51b519872e9c7ca06fa51561d2
---

 include/vlc_playlist.h |   14 --------------
 src/libvlccore.sym     |    1 -
 src/playlist/item.c    |   16 ----------------
 3 files changed, 0 insertions(+), 31 deletions(-)

diff --git a/include/vlc_playlist.h b/include/vlc_playlist.h
index b93f128..b27fd5a 100644
--- a/include/vlc_playlist.h
+++ b/include/vlc_playlist.h
@@ -309,20 +309,6 @@ VLC_EXPORT( bool, playlist_IsServicesDiscoveryLoaded, ( playlist_t *,const char
  * Item management
  ********************************************************/
 
-/*************************** Item creation **************************/
-
-VLC_EXPORT( playlist_item_t* , playlist_ItemNewWithType, ( playlist_t *,const char *,const char *, int , const char *const *, int, int) );
-
-/** Create a new item, without adding it to the playlist
- * \param p_obj a vlc object (anyone will do)
- * \param psz_uri the mrl of the item
- * \param psz_name a text giving a name or description of the item
- * \return the new item or NULL on failure
- */
-#define playlist_ItemNew( a , b, c ) \
-    playlist_ItemNewWithType( VLC_OBJECT(a) , b , c, 0, NULL, -1, 0 )
-
-
 /*************************** Item deletion **************************/
 VLC_EXPORT( int,  playlist_DeleteFromInput, ( playlist_t *, int, bool ) );
 
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 78c72ce..54a0dc7 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -295,7 +295,6 @@ playlist_IsServicesDiscoveryLoaded
 playlist_ItemGetById
 playlist_ItemGetByInput
 playlist_ItemGetByInputId
-playlist_ItemNewWithType
 playlist_ItemToNode
 playlist_LiveSearchUpdate
 playlist_Lock
diff --git a/src/playlist/item.c b/src/playlist/item.c
index 8c85d2a..7038061 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -183,22 +183,6 @@ playlist_item_t *playlist_ItemNewFromInput( playlist_t *p_playlist,
     return p_item;
 }
 
-playlist_item_t * playlist_ItemNewWithType( playlist_t *p_playlist,
-                                            const char *psz_uri,
-                                            const char *psz_name,
-                                            int i_options,
-                                            const char *const *ppsz_options,
-                                            int i_duration, int i_type )
-{
-    input_item_t *p_input;
-    if( psz_uri == NULL ) return NULL;
-    p_input = input_item_NewWithType( VLC_OBJECT(p_playlist), psz_uri,
-                                      psz_name,
-                                      i_options, ppsz_options, VLC_INPUT_OPTION_TRUSTED,
-                                      i_duration, i_type );
-    return playlist_ItemNewFromInput( p_playlist, p_input );
-}
-
 /***************************************************************************
  * Playlist item destruction
  ***************************************************************************/




More information about the vlc-devel mailing list