[vlc-commits] input: remove input_item_PostSubItem() (refs #17652)
Rémi Denis-Courmont
git at videolan.org
Sat Jun 3 20:47:50 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun 3 21:31:04 2017 +0300| [e2ced46523339a716c2ae2821ef078d59181d388] | committer: Rémi Denis-Courmont
input: remove input_item_PostSubItem() (refs #17652)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e2ced46523339a716c2ae2821ef078d59181d388
---
include/vlc_input_item.h | 12 ------------
src/input/item.c | 11 -----------
src/libvlccore.sym | 1 -
3 files changed, 24 deletions(-)
diff --git a/include/vlc_input_item.h b/include/vlc_input_item.h
index 24d67871d6..16dfaf8e2e 100644
--- a/include/vlc_input_item.h
+++ b/include/vlc_input_item.h
@@ -174,18 +174,6 @@ VLC_API void input_item_CopyOptions( input_item_t *p_child, input_item_t *p_pare
VLC_API void input_item_SetName( input_item_t *p_item, const char *psz_name );
/**
- * Add one subitem to this item
- *
- * This won't hold the item, but can tell to interested third parties
- * Like the playlist, that there is a new sub item. With this design
- * It is not the input item's responsibility to keep all the ref of
- * the input item children.
- *
- * Sends a vlc_InputItemSubItemTreeAdded event
- */
-VLC_API void input_item_PostSubItem( input_item_t *p_parent, input_item_t *p_child );
-
-/**
* Start adding multiple subitems.
*
* Create a root node to hold a tree of subitems for given item
diff --git a/src/input/item.c b/src/input/item.c
index 299927fe3b..2e987ffd61 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -226,17 +226,6 @@ void input_item_CopyOptions( input_item_t *p_child,
free( optv );
}
-/* This won't hold the item, but can tell to interested third parties
- * Like the playlist, that there is a new sub item. With this design
- * It is not the input item's responsibility to keep all the ref of
- * the input item children. */
-void input_item_PostSubItem( input_item_t *p_parent, input_item_t *p_child )
-{
- input_item_node_t *p_node = input_item_node_Create( p_parent );
- input_item_node_AppendItem( p_node, p_child );
- input_item_node_PostAndDelete( p_node );
-}
-
bool input_item_HasErrorWhenReading( input_item_t *p_item )
{
vlc_mutex_lock( &p_item->lock );
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index aa957ff26d..ef0e9d20ff 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -193,7 +193,6 @@ input_item_node_AppendNode
input_item_node_Create
input_item_node_Delete
input_item_node_PostAndDelete
-input_item_PostSubItem
input_item_ReplaceInfos
input_item_SetDuration
input_item_SetMeta
More information about the vlc-commits
mailing list