From 3591262165cc19b7c490e340e5e2f34c2ba4175a Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Sun, 6 Apr 2014 23:29:15 +0100 Subject: [PATCH] Remove unused variables after Twitter removal --- src/tomahawk/widgets/AccountModelFactoryProxy.cpp | 2 -- src/tomahawk/widgets/AccountWidget.cpp | 6 ------ 2 files changed, 8 deletions(-) diff --git a/src/tomahawk/widgets/AccountModelFactoryProxy.cpp b/src/tomahawk/widgets/AccountModelFactoryProxy.cpp index 4056c48cd..67a014a7d 100644 --- a/src/tomahawk/widgets/AccountModelFactoryProxy.cpp +++ b/src/tomahawk/widgets/AccountModelFactoryProxy.cpp @@ -47,8 +47,6 @@ AccountModelFactoryProxy::filterAcceptsRow( int sourceRow, const QModelIndex& so if ( idx.data( Tomahawk::Accounts::AccountModel::ChildrenOfFactoryRole ) .value< QList< Tomahawk::Accounts::Account* > >().isEmpty() ) return false; - - Tomahawk::Accounts::AccountFactory* factory = qobject_cast< Tomahawk::Accounts::AccountFactory* >( idx.data( Tomahawk::Accounts::AccountModel::AccountData ).value< QObject* >() ); } return rowType == m_filterRowType; diff --git a/src/tomahawk/widgets/AccountWidget.cpp b/src/tomahawk/widgets/AccountWidget.cpp index 2a707834e..bbd37d4a8 100644 --- a/src/tomahawk/widgets/AccountWidget.cpp +++ b/src/tomahawk/widgets/AccountWidget.cpp @@ -170,12 +170,6 @@ AccountWidget::update( const QPersistentModelIndex& idx, int accountIdx ) "
" + 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() ) { case Tomahawk::Accounts::Account::Connected: