[vlc-commits] playlist: remove unused playlist_DeleteFromInputInParent()
Rémi Denis-Courmont
git at videolan.org
Wed Nov 16 19:41:17 CET 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Nov 16 20:41:09 2016 +0200| [2f78e03d62c08a7da2be524787d165681fc659e1] | committer: Rémi Denis-Courmont
playlist: remove unused playlist_DeleteFromInputInParent()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f78e03d62c08a7da2be524787d165681fc659e1
---
src/playlist/item.c | 21 ---------------------
src/playlist/playlist_internal.h | 2 --
2 files changed, 23 deletions(-)
diff --git a/src/playlist/item.c b/src/playlist/item.c
index 3e4f87a..01b4ae0 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -334,27 +334,6 @@ static int DeleteFromInput( playlist_t *p_playlist, input_item_t *p_input,
}
/**
- * Delete input item
- *
- * Remove an input item when it appears from a root playlist item
- * \param p_playlist playlist object
- * \param p_input the input to delete
- * \param p_root root playlist item
- * \param b_locked TRUE if the playlist is locked
- * \return VLC_SUCCESS or VLC_EGENERIC
- */
-int playlist_DeleteFromInputInParent( playlist_t *p_playlist,
- input_item_t *p_item,
- playlist_item_t *p_root, bool b_locked )
-{
- int i_ret;
- PL_LOCK_IF( !b_locked );
- i_ret = DeleteFromInput( p_playlist, p_item, p_root );
- PL_UNLOCK_IF( !b_locked );
- return i_ret;
-}
-
-/**
* Delete from input
*
* Search anywhere in playlist for an an input item and delete it
diff --git a/src/playlist/playlist_internal.h b/src/playlist/playlist_internal.h
index 210fa7b..c081c98 100644
--- a/src/playlist/playlist_internal.h
+++ b/src/playlist/playlist_internal.h
@@ -134,8 +134,6 @@ playlist_item_t *playlist_ItemFindFromInputAndRoot( playlist_t *p_playlist,
input_item_t *p_input, playlist_item_t *p_root,
bool );
-int playlist_DeleteFromInputInParent( playlist_t *, input_item_t *,
- playlist_item_t *, bool );
int playlist_DeleteFromItemId( playlist_t*, int );
void playlist_ItemRelease( playlist_item_t * );
More information about the vlc-commits
mailing list