]> git.sesse.net Git - vlc/commitdiff
Qt4: PLItem cleanup
authorIlkka Ollakka <ileoo@videolan.org>
Thu, 13 Aug 2009 16:02:36 +0000 (19:02 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Thu, 13 Aug 2009 16:03:02 +0000 (19:03 +0300)
modules/gui/qt4/components/playlist/playlist_item.cpp
modules/gui/qt4/components/playlist/playlist_item.hpp

index 2af82d11bc051ff04e95a65bdc47cdc412367f0c..f0c141447b78ae724e24149e2f98d14fdab33751 100644 (file)
@@ -77,20 +77,17 @@ void PLItem::init( playlist_item_t *_playlist_item, PLItem *parent, PLModel *m,
             else if ( i_showflags >= COLUMN_END )
                 i_showflags = COLUMN_END - 1; /* show everything */
 
-            updateColumnHeaders();
         }
     }
     else
     {
         i_showflags = parentItem->i_showflags;
-        //Add empty string and update() handles data appending
     }
 }
 
 /*
    Constructors
    Call the above function init
-   So far the first constructor isn't used...
    */
 PLItem::PLItem( playlist_item_t *p_item, PLItem *parent, PLModel *m )
 {
@@ -109,12 +106,6 @@ PLItem::~PLItem()
     children.clear();
 }
 
-/* Column manager */
-void PLItem::updateColumnHeaders()
-{
-    assert( i_showflags < COLUMN_END );
-}
-
 /* So far signal is always true.
    Using signal false would not call PLModel... Why ?
  */
@@ -149,13 +140,6 @@ int PLItem::row() const
 }
 
 /* update the PL Item, get the good names and so on */
-/* This function may not be the best way to do it
-   It destroys everything and gets everything again instead of just
-   building the necessary columns.
-   This does extra work if you re-display the same column. Slower...
-   On the other hand, this way saves memory.
-   There must be a more clever way.
-   */
 void PLItem::update( playlist_item_t *p_item, bool iscurrent )
 {
     assert( p_item->p_input->i_id == i_input_id );
index daa831af92cddc6425f94fc47b2136db6d05ff0e..74d83fb639f733d35aa75527f3b27921bb31e233 100644 (file)
@@ -40,7 +40,6 @@ class PLItem
 {
     friend class PLModel;
 public:
-    PLItem( int, int, bool, PLItem *parent , PLModel * );
     PLItem( playlist_item_t *, PLItem *parent, PLModel * );
     PLItem( playlist_item_t *, QSettings *, PLModel * );
     ~PLItem();
@@ -74,7 +73,6 @@ protected:
 
 private:
     void init( playlist_item_t *, PLItem *, PLModel *, QSettings * );
-    void updateColumnHeaders();
     PLItem *parentItem;
     PLModel *model;
 };