]> git.sesse.net Git - vlc/commitdiff
playlist_ItemGetByInputId: remove dead code
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 16 May 2009 10:53:43 +0000 (13:53 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 16 May 2009 10:53:43 +0000 (13:53 +0300)
playlist_ItemGetByInput can be used instead anyway

include/vlc_playlist.h
src/libvlccore.sym
src/playlist/search.c

index fc2b8089865178e0d2d7f31fdc1afa5b6c72324b..c92c274d2ff00202f6329a0ccca40dbfc5c63b47 100644 (file)
@@ -333,7 +333,6 @@ VLC_EXPORT( int, playlist_BothAddInput, ( playlist_t *, input_item_t *,playlist_
 /********************************** Item search *************************/
 VLC_EXPORT( playlist_item_t *, playlist_ItemGetById, (playlist_t *, int ) );
 VLC_EXPORT( playlist_item_t *, playlist_ItemGetByInput, (playlist_t *,input_item_t * ) );
-VLC_EXPORT( playlist_item_t *, playlist_ItemGetByInputId, (playlist_t *, int, playlist_item_t *) );
 
 VLC_EXPORT( int, playlist_LiveSearchUpdate, (playlist_t *, playlist_item_t *, const char *) );
 
index e2216fce5498f1b7f78f2102ccdfb48c059a3945..45c6bf3a00a432361d8cb357127eab00471c4d35 100644 (file)
@@ -301,7 +301,6 @@ playlist_Import
 playlist_IsServicesDiscoveryLoaded
 playlist_ItemGetById
 playlist_ItemGetByInput
-playlist_ItemGetByInputId
 playlist_LiveSearchUpdate
 playlist_Lock
 playlist_NodeAppend
index 66bd3ad0929344f5861b4769eb48271362dc9b68..262138f8b2e935d125627c62ef58127bfa4a5be6 100644 (file)
@@ -80,38 +80,6 @@ playlist_item_t* playlist_ItemGetByInput( playlist_t * p_playlist,
 }
 
 
-/**
- * Get input by item id
- *
- * Find the playlist item matching the input id under the given node
- * \param p_playlist the playlist
- * \param i_input_id the id of the input to find
- * \param p_root the root node of the search
- * \return the playlist item or NULL on failure
- */
-playlist_item_t * playlist_ItemGetByInputId( playlist_t *p_playlist,
-                                             int i_input_id,
-                                             playlist_item_t *p_root )
-{
-    int i;
-    PL_ASSERT_LOCKED;
-    assert( p_root != NULL );
-    for( i = 0 ; i< p_root->i_children ; i++ )
-    {
-        if( p_root->pp_children[i]->p_input &&
-            p_root->pp_children[i]->p_input->i_id == i_input_id )
-        {
-            return p_root->pp_children[i];
-        }
-        else if( p_root->pp_children[i]->i_children >= 0 )
-        {
-            return playlist_ItemGetByInputId( p_playlist, i_input_id,
-                                              p_root->pp_children[i] );
-        }
-    }
-    return NULL;
-}
-
 /***************************************************************************
  * Live search handling
  ***************************************************************************/