Cleaning unnecessary code

This commit is contained in:
Helder Martins 2014-07-23 23:47:12 +01:00
parent 0c2d4e9f1c
commit cbfd3218f2
2 changed files with 2 additions and 9 deletions

View File

@ -256,7 +256,7 @@ void PlaylistView::SetPlaylist(Playlist* playlist) {
disconnect(playlist_, SIGNAL(DynamicModeChanged(bool)), this,
SLOT(DynamicModeChanged(bool)));
disconnect(playlist_, SIGNAL(destroyed()), this, SLOT(PlaylistDestroyed()));
disconnect(playlist_, SIGNAL(QueueChanged()), this, SLOT(UpdateView()));
disconnect(playlist_, SIGNAL(QueueChanged()), this, SLOT(update()));
disconnect(dynamic_controls_, SIGNAL(Expand()), playlist_,
SLOT(ExpandDynamicPlaylist()));
@ -278,7 +278,7 @@ void PlaylistView::SetPlaylist(Playlist* playlist) {
connect(playlist_, SIGNAL(DynamicModeChanged(bool)),
SLOT(DynamicModeChanged(bool)));
connect(playlist_, SIGNAL(destroyed()), SLOT(PlaylistDestroyed()));
connect(playlist_, SIGNAL(QueueChanged()), SLOT(UpdateView()));
connect(playlist_, SIGNAL(QueueChanged()), SLOT(update()));
connect(dynamic_controls_, SIGNAL(Expand()), playlist_,
SLOT(ExpandDynamicPlaylist()));
@ -1321,7 +1321,3 @@ void PlaylistView::focusInEvent(QFocusEvent* event) {
}
}
}
void PlaylistView::UpdateView() {
update();
}

View File

@ -105,9 +105,6 @@ class PlaylistView : public QTreeView {
const QImage& cover_art);
void PlayerStopped();
// General slot to update the whole playlistview
void UpdateView();
signals:
void PlayItem(const QModelIndex& index);
void PlayPause();