Browse Source

playlist: remove unused save flag

pull/50/head
Rémi Denis-Courmont 10 years ago
parent
commit
5001f5b25e
  1. 1
      include/vlc_playlist.h
  2. 1
      modules/lua/libs/playlist.c
  3. 3
      modules/misc/playlist/html.c
  4. 3
      modules/misc/playlist/m3u.c
  5. 1
      share/lua/README.txt

1
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 ? */

1
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 )

3
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 );

3
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 );

1
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

Loading…
Cancel
Save