Commit 4d14350c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ML: remove an unused function

parent c2f88e59
......@@ -1172,16 +1172,6 @@ VLC_API void ml_DeletePersonTypeFromMedia( ml_media_t* p_media,
const char *psz_role );
/**
* @brief Creates and adds the playlist based on a given find tree
* @param p_ml Media library object
* @param p_tree Find tree to create SELECT
*/
VLC_API void ml_PlaySmartPlaylistBasedOn( media_library_t* p_ml,
ml_ftree_t* p_tree );
/**
* Convenience Macros
*/
......
......@@ -235,7 +235,6 @@ ml_FtreeSpec
ml_UpdateSimple
ml_GetPersonsFromMedia
ml_DeletePersonTypeFromMedia
ml_PlaySmartPlaylistBasedOn
module_config_free
module_config_get
module_exists
......
......@@ -342,36 +342,6 @@ ml_ftree_t* ml_FtreeSpec( ml_ftree_t* tree,
}
/**
* @brief Creates and adds the playlist based on a given find tree
* @param p_ml Media library object
* @param p_tree Find tree to create SELECT
*/
void ml_PlaySmartPlaylistBasedOn( media_library_t* p_ml,
ml_ftree_t* p_tree )
{
assert( p_tree );
vlc_array_t* p_results = vlc_array_new();
ml_FindAdv( p_ml, p_results, ML_ID, NULL, p_tree );
playlist_t* p_pl = pl_Get( p_ml );
playlist_Lock( p_pl );
playlist_Clear( p_pl, true );
for( int i = 0; i < vlc_array_count( p_results ); i++ )
{
ml_result_t* p_res = ( ml_result_t* ) vlc_array_item_at_index( p_results, i );
input_item_t* p_item;
if( p_res )
{
p_item = ml_CreateInputItem( p_ml, p_res->value.i );
playlist_AddInput( p_pl, p_item, PLAYLIST_APPEND,
PLAYLIST_END, true, true );
}
}
playlist_Unlock( p_pl );
ml_DestroyResultArray( p_results );
vlc_array_destroy( p_results );
}
/**
* @brief Returns a person list of given type
* @param p_ml The ML object
......
......@@ -434,14 +434,6 @@ ml_ftree_t* ml_FtreeSpec( ml_ftree_t* tree, ml_select_e crit, int limit,
return NULL;
}
void ml_PlaySmartPlaylistBasedOn( media_library_t* p_ml,
ml_ftree_t* p_tree )
{
VLC_UNUSED( p_ml );
VLC_UNUSED( p_tree );
assert( 0 );
}
void ml_DeletePersonTypeFromMedia( ml_media_t* p_media, const char *psz_role )
{
VLC_UNUSED( p_media );
......
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