]> git.sesse.net Git - vlc/commitdiff
Removed unused playlist_ItemNew(WithType).
authorLaurent Aimar <fenrir@videolan.org>
Sun, 18 Jan 2009 13:44:43 +0000 (14:44 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 18 Jan 2009 14:14:54 +0000 (15:14 +0100)
include/vlc_playlist.h
src/libvlccore.sym
src/playlist/item.c

index b93f128139ae54fd5b44984c16f75bd1e2eb3b11..b27fd5a1301c0ac1a59bd500877a954db8a2e441 100644 (file)
@@ -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 ) );
 
index 78c72ce45434eda5326f45710902da573933e330..54a0dc7404023ab4ebd1714d4daa17401e965909 100644 (file)
@@ -295,7 +295,6 @@ playlist_IsServicesDiscoveryLoaded
 playlist_ItemGetById
 playlist_ItemGetByInput
 playlist_ItemGetByInputId
-playlist_ItemNewWithType
 playlist_ItemToNode
 playlist_LiveSearchUpdate
 playlist_Lock
index 8c85d2a5caf128afbd75002338f01ec35cc78b62..70380613dc849a39b505a461c3da27f3be0a01d6 100644 (file)
@@ -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
  ***************************************************************************/