]> git.sesse.net Git - vlc/commitdiff
remove unused artSet signal in playlist_model (changed to input-manager
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 8 Jan 2008 07:33:04 +0000 (07:33 +0000)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 8 Jan 2008 07:33:04 +0000 (07:33 +0000)
signaling)

modules/gui/qt4/playlist_model.cpp
modules/gui/qt4/playlist_model.hpp

index 3c1932917640ac02e2627699083c23e73b2c07b5..287cfd7aae51e1d0f2f835950a2c6c809d73f1b6 100644 (file)
@@ -173,14 +173,6 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
     type = p_item->p_input->i_type;
     current = iscurrent;
 
-    char *psz_arturl = input_item_GetArtURL( p_item->p_input );
-    if( ( current && psz_arturl ) &&
-        !strncmp( psz_arturl, "file://", 7 ) )
-        model->sendArt( qfu( psz_arturl ) ) ;
-    else if( current )
-        model->removeArt();
-    free( psz_arturl );
-
     strings.clear();
 
     if( model->i_depth == 1 )  //left window for playlist etc.
@@ -827,17 +819,6 @@ void PLModel::UpdateTreeItem( playlist_item_t *p_item, PLItem *item,
 
 /************************* Actions ******************************/
 
-void PLModel::sendArt( QString url )
-{
-    QString arturl = url.replace( "file://",QString("" ) );
-    emit artSet( arturl );
-}
-
-void PLModel::removeArt()
-{
-    emit artSet( QString() );
-}
-
 /**
  * Deletion, here we have to do a ugly slow hack as we retrieve the full
  * list of indexes to delete at once: when we delete a node and all of
index eb3711258db9501c5e4d51de4cbffada0756d233..7b04158dce71252ac3d4c63ac0e2d382a6d78269 100644 (file)
@@ -139,9 +139,6 @@ public:
                       int row, int column, const QModelIndex &target );
     QStringList mimeTypes() const;
 
-    void sendArt( QString url );
-    void removeArt( );
-
     int shownFlags() {  return rootItem->i_showflags;  }
 private:
     void addCallbacks();
@@ -184,7 +181,6 @@ private:
     int i_cached_id;
     int i_cached_input_id;
 signals:
-    void artSet( QString );
     void shouldRemove( int );
 public slots:
     void activateItem( const QModelIndex &index );