Skip to content

Commit

Permalink
Remove unnecessary variable crows
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy committed Dec 21, 2014
1 parent b882340 commit 60ce34e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/libtomahawk/playlist/RecentlyPlayedModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,8 @@ RecentlyPlayedModel::onSourceAdded( const Tomahawk::source_ptr& source )
connect( source.data(), SIGNAL( playbackFinished( Tomahawk::track_ptr, Tomahawk::PlaybackLog ) ),
SLOT( onPlaybackFinished( Tomahawk::track_ptr, Tomahawk::PlaybackLog ) ), Qt::UniqueConnection );

QPair< int, int > crows;
int c = rowCount( QModelIndex() );
crows.first = c;
crows.second = c;

emit beginInsertRows( QModelIndex(), crows.first, crows.second );
emit beginInsertRows( QModelIndex(), c, c );

PlayableItem* item = new PlayableItem( source, rootItem() );
item->index = createIndex( rootItem()->children.count() - 1, 0, item );
Expand Down

0 comments on commit 60ce34e

Please sign in to comment.