mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Remove unused variables after Twitter removal
This commit is contained in:
@@ -47,8 +47,6 @@ AccountModelFactoryProxy::filterAcceptsRow( int sourceRow, const QModelIndex& so
|
|||||||
if ( idx.data( Tomahawk::Accounts::AccountModel::ChildrenOfFactoryRole )
|
if ( idx.data( Tomahawk::Accounts::AccountModel::ChildrenOfFactoryRole )
|
||||||
.value< QList< Tomahawk::Accounts::Account* > >().isEmpty() )
|
.value< QList< Tomahawk::Accounts::Account* > >().isEmpty() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
Tomahawk::Accounts::AccountFactory* factory = qobject_cast< Tomahawk::Accounts::AccountFactory* >( idx.data( Tomahawk::Accounts::AccountModel::AccountData ).value< QObject* >() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return rowType == m_filterRowType;
|
return rowType == m_filterRowType;
|
||||||
|
@@ -170,12 +170,6 @@ AccountWidget::update( const QPersistentModelIndex& idx, int accountIdx )
|
|||||||
"</b><br>" +
|
"</b><br>" +
|
||||||
account->accountFriendlyName() );
|
account->accountFriendlyName() );
|
||||||
|
|
||||||
//we already know it's a factory because of the FactoryProxy
|
|
||||||
Tomahawk::Accounts::AccountFactory* fac =
|
|
||||||
qobject_cast< Tomahawk::Accounts::AccountFactory* >(
|
|
||||||
idx.data( Tomahawk::Accounts::AccountModel::AccountData )
|
|
||||||
.value< QObject* >() );
|
|
||||||
|
|
||||||
switch ( account->connectionState() )
|
switch ( account->connectionState() )
|
||||||
{
|
{
|
||||||
case Tomahawk::Accounts::Account::Connected:
|
case Tomahawk::Accounts::Account::Connected:
|
||||||
|
Reference in New Issue
Block a user