Commit 286b556d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

playlist: remove playlist_DeleteFromInput()

parent e7a4c97c
......@@ -95,8 +95,7 @@ struct intf_thread_t;
* You can create nodes with playlist_NodeCreate and can create items from
* existing input items to be placed under any node with playlist_NodeAddInput.
*
* To delete an item, use playlist_DeleteFromInput( p_item ) which will
* remove all occurrences of the input.
* To delete an item, use playlist_NodeDelete( p_item ).
*
*
* The playlist defines the following event variables:
......@@ -329,9 +328,6 @@ VLC_API int playlist_ServicesDiscoveryControl( playlist_t *, const char *, int,
* Item management
********************************************************/
/*************************** Item deletion **************************/
VLC_API int playlist_DeleteFromInput( playlist_t *, input_item_t *, bool );
/******************** Item addition ********************/
VLC_API int playlist_Add( playlist_t *, const char *, const char *, int, int, bool );
VLC_API int playlist_AddExt( playlist_t *, const char *, const char *, int, int, mtime_t, int, const char *const *, unsigned, bool );
......
......@@ -340,7 +340,6 @@ playlist_CurrentInput
playlist_CurrentInputLocked
playlist_CurrentPlayingItem
playlist_Deactivate
playlist_DeleteFromInput
playlist_Export
playlist_GetNodeDuration
playlist_Import
......
......@@ -313,36 +313,6 @@ void playlist_ItemRelease( playlist_item_t *p_item )
free( p_item );
}
/**
* Delete from input
*
* Search anywhere in playlist for an an input item and delete it
* \param p_playlist playlist object
* \param p_input the input to delete
* \param b_locked TRUE if the playlist is locked
* \return VLC_SUCCESS or VLC_ENOITEM
*/
int playlist_DeleteFromInput( playlist_t *p_playlist, input_item_t *p_input,
bool b_locked )
{
playlist_item_t *p_item;
int i_ret;
PL_LOCK_IF( !b_locked );
p_item = playlist_ItemFindFromInputAndRoot( p_playlist, p_input,
p_playlist->p_root );
if( p_item != NULL )
{
playlist_NodeDelete( p_playlist, p_item, false );
i_ret = VLC_SUCCESS;
}
else
i_ret = VLC_ENOITEM;
PL_UNLOCK_IF( !b_locked );
return i_ret;
}
/**
* Clear the playlist
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment