From 5001f5b25e7e235caae319de04ffe4f6146d0c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Tue, 15 Nov 2016 23:22:39 +0200 Subject: [PATCH] playlist: remove unused save flag --- include/vlc_playlist.h | 1 - modules/lua/libs/playlist.c | 1 - modules/misc/playlist/html.c | 3 --- modules/misc/playlist/m3u.c | 3 --- share/lua/README.txt | 1 - 5 files changed, 9 deletions(-) diff --git a/include/vlc_playlist.h b/include/vlc_playlist.h index 81d69583e3..9c365a7443 100644 --- a/include/vlc_playlist.h +++ b/include/vlc_playlist.h @@ -145,7 +145,6 @@ struct playlist_item_t }; typedef enum { - PLAYLIST_SAVE_FLAG = 0x0001, /**< Must it be saved */ PLAYLIST_SKIP_FLAG = 0x0002, /**< Must playlist skip after it ? */ PLAYLIST_DBL_FLAG = 0x0004, /**< Is it disabled ? */ PLAYLIST_RO_FLAG = 0x0008, /**< Write-enabled ? */ diff --git a/modules/lua/libs/playlist.c b/modules/lua/libs/playlist.c index 0657385524..c44571fd65 100644 --- a/modules/lua/libs/playlist.c +++ b/modules/lua/libs/playlist.c @@ -211,7 +211,6 @@ static void push_playlist_item( lua_State *L, playlist_item_t *p_item ) lua_pushboolean( L, 1 ); \ lua_setfield( L, -2, #label ); \ } - CHECK_AND_SET_FLAG( SAVE, save ) CHECK_AND_SET_FLAG( SKIP, skip ) CHECK_AND_SET_FLAG( DBL, disabled ) CHECK_AND_SET_FLAG( RO, ro ) diff --git a/modules/misc/playlist/html.c b/modules/misc/playlist/html.c index 8d41983e66..1aa6dce457 100644 --- a/modules/misc/playlist/html.c +++ b/modules/misc/playlist/html.c @@ -50,9 +50,6 @@ static void DoChildren( playlist_export_t *p_export, playlist_item_t *p_root ) playlist_item_t *p_current = p_root->pp_children[i]; assert( p_current ); - if( p_current->i_flags & PLAYLIST_SAVE_FLAG ) - continue; - if( p_current->i_children >= 0 ) { DoChildren( p_export, p_current ); diff --git a/modules/misc/playlist/m3u.c b/modules/misc/playlist/m3u.c index 874d21ca19..f1fb103656 100644 --- a/modules/misc/playlist/m3u.c +++ b/modules/misc/playlist/m3u.c @@ -59,9 +59,6 @@ static void DoChildren( playlist_export_t *p_export, playlist_item_t *p_root, playlist_item_t *p_current = p_root->pp_children[i]; assert( p_current ); - if( p_current->i_flags & PLAYLIST_SAVE_FLAG ) - continue; - if( p_current->i_children >= 0 ) { DoChildren( p_export, p_current, pf_fprintf ); diff --git a/share/lua/README.txt b/share/lua/README.txt index 4ef2de7953..50e7d81839 100644 --- a/share/lua/README.txt +++ b/share/lua/README.txt @@ -286,7 +286,6 @@ playlist.get( [what, [tree]] ): Get the playlist. .id: The item's id. .flags: a table with the following members if the corresponding flag is set: - .save .skip .disabled .ro