Commit 5d58894f authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: PL/MLModel: remove nolonger used SelectedUri()

parent 9449cc33
...@@ -566,18 +566,6 @@ bool MLModel::isCurrentItem( const QModelIndex &index, playLocation where ) cons ...@@ -566,18 +566,6 @@ bool MLModel::isCurrentItem( const QModelIndex &index, playLocation where ) cons
return false; return false;
} }
QStringList MLModel::selectedURIs( QModelIndexList *current_selection )
{
QStringList list;
for( int i = 0; i < current_selection->count(); i++ )
{
QModelIndex idx = current_selection->value(i);
MLItem *item = static_cast< MLItem* >( idx.internalPointer() );
list.append( QString( item->getUri().toString() ) );
}
return list;
}
QModelIndex MLModel::getIndexByMLID( int id ) const QModelIndex MLModel::getIndexByMLID( int id ) const
{ {
for( int i = 0; i < rowCount( ); i++ ) for( int i = 0; i < rowCount( ); i++ )
......
...@@ -95,7 +95,6 @@ public: ...@@ -95,7 +95,6 @@ public:
void clear(); void clear();
void play( const QModelIndex &idx ); void play( const QModelIndex &idx );
QStringList selectedURIs( QModelIndexList * );
virtual QString getURI( const QModelIndex &index ) const; virtual QString getURI( const QModelIndex &index ) const;
virtual QModelIndex rootIndex() const; virtual QModelIndex rootIndex() const;
virtual bool isTree() const; virtual bool isTree() const;
......
...@@ -593,31 +593,6 @@ int PLModel::rowCount( const QModelIndex &parent ) const ...@@ -593,31 +593,6 @@ int PLModel::rowCount( const QModelIndex &parent ) const
return parentItem->childCount(); return parentItem->childCount();
} }
QStringList PLModel::selectedURIs( QModelIndexList *current_selection )
{
QStringList lst;
for( int i = 0; i < current_selection->count(); i++ )
{
const PLItem *item = getItem( current_selection->at(i) );
if( item )
{
PL_LOCK;
playlist_item_t *p_item = playlist_ItemGetById( p_playlist, item->i_id );
if( p_item )
{
char *psz = input_item_GetURI( p_item->p_input );
if( psz )
{
lst.append( qfu(psz) );
free( psz );
}
}
PL_UNLOCK;
}
}
return lst;
}
/************************* Lookups *****************************/ /************************* Lookups *****************************/
PLItem *PLModel::findById( PLItem *root, int i_id ) const PLItem *PLModel::findById( PLItem *root, int i_id ) const
{ {
......
...@@ -150,7 +150,6 @@ private: ...@@ -150,7 +150,6 @@ private:
return static_cast<PLItem*>( index.internalPointer() ); return static_cast<PLItem*>( index.internalPointer() );
else return rootItem; else return rootItem;
} }
QStringList selectedURIs( QModelIndexList * );
QModelIndex index( PLItem *, const int c ) const; QModelIndex index( PLItem *, const int c ) const;
bool isCurrent( const QModelIndex &index ) const; bool isCurrent( const QModelIndex &index ) const;
bool isParent( const QModelIndex &index, const QModelIndex &current) const; bool isParent( const QModelIndex &index, const QModelIndex &current) const;
......
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