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

playlist: remove unused remove flag

parent 5001f5b2
......@@ -148,7 +148,6 @@ typedef enum {
PLAYLIST_SKIP_FLAG = 0x0002, /**< Must playlist skip after it ? */
PLAYLIST_DBL_FLAG = 0x0004, /**< Is it disabled ? */
PLAYLIST_RO_FLAG = 0x0008, /**< Write-enabled ? */
PLAYLIST_REMOVE_FLAG = 0x0010, /**< Remove this item at the end */
PLAYLIST_EXPANDED_FLAG = 0x0020, /**< Expanded node */
PLAYLIST_SUBITEM_STOP_FLAG = 0x0040, /**< Must playlist stop if the item gets subitems ?*/
PLAYLIST_NO_INHERIT_FLAG = 0x0080, /**< Childs must not inherit flags from parent node */
......
......@@ -214,7 +214,6 @@ static void push_playlist_item( lua_State *L, playlist_item_t *p_item )
CHECK_AND_SET_FLAG( SKIP, skip )
CHECK_AND_SET_FLAG( DBL, disabled )
CHECK_AND_SET_FLAG( RO, ro )
CHECK_AND_SET_FLAG( REMOVE, remove )
CHECK_AND_SET_FLAG( EXPANDED, expanded )
#undef CHECK_AND_SET_FLAG
lua_setfield( L, -2, "flags" );
......
......@@ -289,7 +289,6 @@ playlist.get( [what, [tree]] ): Get the playlist.
.skip
.disabled
.ro
.remove
.expanded
.name:
.path:
......
......@@ -400,13 +400,6 @@ void set_current_status_item( playlist_t * p_playlist,
{
PL_ASSERT_LOCKED;
if( pl_priv(p_playlist)->status.p_item &&
pl_priv(p_playlist)->status.p_item->i_flags & PLAYLIST_REMOVE_FLAG &&
pl_priv(p_playlist)->status.p_item != p_item )
{
/* It's unsafe given current design to delete a playlist item :(
playlist_ItemDelete( pl_priv(p_playlist)->status.p_item ); */
}
pl_priv(p_playlist)->status.p_item = p_item;
}
......@@ -415,13 +408,6 @@ void set_current_status_node( playlist_t * p_playlist,
{
PL_ASSERT_LOCKED;
if( pl_priv(p_playlist)->status.p_node &&
pl_priv(p_playlist)->status.p_node->i_flags & PLAYLIST_REMOVE_FLAG &&
pl_priv(p_playlist)->status.p_node != p_node )
{
/* It's unsafe given current design to delete a playlist item :(
playlist_ItemDelete( pl_priv(p_playlist)->status.p_node ); */
}
pl_priv(p_playlist)->status.p_node = p_node;
}
......
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