[vlc-commits] playlist: remove unused NO_REBUILD flag
Rémi Denis-Courmont
git at videolan.org
Sat Nov 19 12:35:45 CET 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 19 12:01:47 2016 +0200| [06bde4a9993ebc02ae3eabec44c19349df007839] | committer: Rémi Denis-Courmont
playlist: remove unused NO_REBUILD flag
The flag is sort-of-implemented, but never actually used.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=06bde4a9993ebc02ae3eabec44c19349df007839
---
include/vlc_playlist.h | 1 -
src/playlist/item.c | 3 +--
src/playlist/tree.c | 3 +--
3 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/include/vlc_playlist.h b/include/vlc_playlist.h
index 65e9a71..dbcdb51 100644
--- a/include/vlc_playlist.h
+++ b/include/vlc_playlist.h
@@ -208,7 +208,6 @@ enum
/* Used by playlist_Import */
#define PLAYLIST_GO 0x0004
-#define PLAYLIST_NO_REBUILD 0x0020
#define PLAYLIST_END -1
diff --git a/src/playlist/item.c b/src/playlist/item.c
index e370e06..ce05f8a 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -822,8 +822,7 @@ static void AddItem( playlist_t *p_playlist, playlist_item_t *p_item,
ARRAY_APPEND(p_playlist->items, p_item);
playlist_NodeInsert( p_playlist, p_item, p_node, i_pos );
- playlist_SendAddNotify( p_playlist, p_item,
- !( i_mode & PLAYLIST_NO_REBUILD ) );
+ playlist_SendAddNotify( p_playlist, p_item, true );
}
/* Actually convert an item to a node */
diff --git a/src/playlist/tree.c b/src/playlist/tree.c
index 04c4618..2d07cfb 100644
--- a/src/playlist/tree.c
+++ b/src/playlist/tree.c
@@ -76,8 +76,7 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist,
if( p_parent != NULL )
playlist_NodeInsert( p_playlist, p_item, p_parent, i_pos );
- playlist_SendAddNotify( p_playlist, p_item,
- !( i_flags & PLAYLIST_NO_REBUILD ));
+ playlist_SendAddNotify( p_playlist, p_item, true );
p_item->i_flags |= i_flags;
More information about the vlc-commits
mailing list