Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed May 9, 2020
1 parent d2aea32 commit b01cf2a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
volume = progress = nullptr;
nowPlaying = position = nowAlbum = nullptr;
repeat = shuffle = playPause = nullptr;
isPlaying = false;
mediaPlayer = nullptr;
artistView = nullptr;
lyricsView = nullptr;
Expand Down Expand Up @@ -125,7 +124,6 @@ void MainWindow::refreshed(const spt::Playback &playback)
if (currentUser.id.isEmpty())
currentUser = spotify->me();
current = playback;
isPlaying = current.isPlaying;
if (!current.isPlaying)
{
playPause->setIcon(Icon::get("media-playback-start"));
Expand Down
1 change: 0 additions & 1 deletion src/mainwindow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ class MainWindow : public QMainWindow
QVector<spt::Playlist> *sptPlaylists;
QListWidget *playlists;
QAction *search;
bool isPlaying;
QTreeWidget *songs;
// What Spotify context we're currently in
QString sptContext;
Expand Down

0 comments on commit b01cf2a

Please sign in to comment.