Commit 2c6f604e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

input: remove the vlc_InputItemSubItemAdded event

parent ada216c1
......@@ -98,7 +98,6 @@
typedef enum vlc_event_type_t {
/* Input item events */
vlc_InputItemMetaChanged,
vlc_InputItemSubItemAdded,
vlc_InputItemSubItemTreeAdded,
vlc_InputItemDurationChanged,
vlc_InputItemPreparsedChanged,
......
......@@ -182,7 +182,7 @@ VLC_API void input_item_SetName( input_item_t *p_item, const char *psz_name );
* It is not the input item's responsibility to keep all the ref of
* the input item children.
*
* Sends a vlc_InputItemSubItemTreeAdded and a vlc_InputItemSubItemAdded event
* Sends a vlc_InputItemSubItemTreeAdded event
*/
VLC_API void input_item_PostSubItem( input_item_t *p_parent, input_item_t *p_child );
......@@ -215,8 +215,6 @@ VLC_API void input_item_node_Delete( input_item_node_t *p_node );
* by the given root node has created new subitems that are pointed to by all the
* children of the node.
*
* Also sends vlc_InputItemSubItemAdded event for every child under the given root node;
*
* In the end deletes the node and all its children nodes.
*/
VLC_API void input_item_node_PostAndDelete( input_item_node_t *p_node );
......
......@@ -226,19 +226,6 @@ void input_item_CopyOptions( input_item_t *p_child,
free( optv );
}
static void post_subitems( input_item_node_t *p_node )
{
for( int i = 0; i < p_node->i_children; i++ )
{
vlc_event_send( &p_node->p_item->event_manager, &(vlc_event_t) {
.type = vlc_InputItemSubItemAdded,
.u.input_item_subitem_added.p_new_child =
p_node->pp_children[i]->p_item } );
post_subitems( p_node->pp_children[i] );
}
}
/* 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
......@@ -1316,8 +1303,6 @@ void input_item_node_AppendNode( input_item_node_t *p_parent, input_item_node_t
void input_item_node_PostAndDelete( input_item_node_t *p_root )
{
post_subitems( p_root );
vlc_event_send( &p_root->p_item->event_manager, &(vlc_event_t) {
.type = vlc_InputItemSubItemTreeAdded,
.u.input_item_subitem_tree_added.p_root = p_root } );
......
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