]> git.sesse.net Git - vlc/commitdiff
Remove unused option: b_prefers_tree
authorRafaël Carré <funman@videolan.org>
Tue, 22 Apr 2008 17:42:44 +0000 (19:42 +0200)
committerRafaël Carré <funman@videolan.org>
Tue, 22 Apr 2008 17:51:49 +0000 (19:51 +0200)
include/vlc_input.h
src/input/item.c
src/playlist/tree.c

index 1bdc3f25e35df043f3e57b760f40b65123d53740..edbd83dc99ec9d4587edc9d27333779375b7b54d 100644 (file)
@@ -72,7 +72,6 @@ struct input_item_t
     mtime_t    i_duration;           /**< Duration in milliseconds*/
 
     uint8_t    i_type;               /**< Type (file, disc, ...) */
-    bool b_prefers_tree;      /**< Do we prefer being displayed as tree*/
 
     int        i_categories;         /**< Number of info categories */
     info_category_t **pp_categories; /**< Pointer to the first info category */
index da519e9c536e83dae7259732147238ea93d21a75..cfca9467f4526222607154f050bc286a094992c6 100644 (file)
@@ -352,7 +352,6 @@ input_item_t *input_ItemNewWithType( vlc_object_t *p_obj, const char *psz_uri,
         p_input->psz_uri = NULL;
 
     p_input->i_type = i_type;
-    p_input->b_prefers_tree = false;
 
     if( p_input->i_type == ITEM_TYPE_UNKNOWN )
         GuessType( p_input );
index 49d077630747ce9a497231f72a14e5cae80e4cf0..d4c8c49a50fcdbae0137b4c47566e7180790640d 100644 (file)
@@ -329,8 +329,8 @@ playlist_item_t * playlist_GetPreferredNode( playlist_t *p_playlist,
     int i;
     if( p_node->p_parent == p_playlist->p_root_category )
     {
-        if( p_playlist->b_always_tree ||
-            p_node->p_input->b_prefers_tree ) return p_node;
+        if( p_playlist->b_always_tree )
+            return p_node;
         for( i = 0 ; i< p_playlist->p_root_onelevel->i_children; i++ )
         {
             if( p_playlist->p_root_onelevel->pp_children[i]->p_input->i_id ==
@@ -340,7 +340,7 @@ playlist_item_t * playlist_GetPreferredNode( playlist_t *p_playlist,
     }
     else if( p_node->p_parent == p_playlist->p_root_onelevel )
     {
-        if( p_playlist->b_never_tree || !p_node->p_input->b_prefers_tree )
+        if( p_playlist->b_never_tree )
             return p_node;
         for( i = 0 ; i< p_playlist->p_root_category->i_children; i++ )
         {