[vlc-commits] ML: remove an unused function
Rémi Denis-Courmont
git at videolan.org
Tue Aug 21 20:32:26 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 21 20:59:29 2012 +0300| [4d14350c9a2043e601d1be3df38b048ecac67d71] | committer: Rémi Denis-Courmont
ML: remove an unused function
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4d14350c9a2043e601d1be3df38b048ecac67d71
---
include/vlc_media_library.h | 10 ----------
src/libvlccore.sym | 1 -
src/misc/media_library.c | 30 ------------------------------
src/missing.c | 8 --------
4 files changed, 49 deletions(-)
diff --git a/include/vlc_media_library.h b/include/vlc_media_library.h
index 6d545ab..fee0af9 100644
--- a/include/vlc_media_library.h
+++ b/include/vlc_media_library.h
@@ -1173,16 +1173,6 @@ VLC_API void ml_DeletePersonTypeFromMedia( ml_media_t* p_media,
/**
- * @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
*/
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 7c159a8..7c193b0 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -235,7 +235,6 @@ ml_FtreeSpec
ml_UpdateSimple
ml_GetPersonsFromMedia
ml_DeletePersonTypeFromMedia
-ml_PlaySmartPlaylistBasedOn
module_config_free
module_config_get
module_exists
diff --git a/src/misc/media_library.c b/src/misc/media_library.c
index 18679ef..d3517bc 100644
--- a/src/misc/media_library.c
+++ b/src/misc/media_library.c
@@ -343,36 +343,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
* @param p_media The Media object
diff --git a/src/missing.c b/src/missing.c
index 7118d11..d58668e 100644
--- a/src/missing.c
+++ b/src/missing.c
@@ -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 );
More information about the vlc-commits
mailing list