From b01cf2a157917e93280b5db1af0e8827e48e1cb9 Mon Sep 17 00:00:00 2001 From: kraxarn Date: Sat, 9 May 2020 17:14:51 +0200 Subject: [PATCH] Remove unused variable --- src/mainwindow.cpp | 2 -- src/mainwindow.hpp | 1 - 2 files changed, 3 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 90d098a6e..9c2ae70af 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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; @@ -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")); diff --git a/src/mainwindow.hpp b/src/mainwindow.hpp index 41fe70be6..45ce85b04 100644 --- a/src/mainwindow.hpp +++ b/src/mainwindow.hpp @@ -89,7 +89,6 @@ class MainWindow : public QMainWindow QVector *sptPlaylists; QListWidget *playlists; QAction *search; - bool isPlaying; QTreeWidget *songs; // What Spotify context we're currently in QString sptContext;