From d52e31cec58bbdd5f0e3e61f776341f9a75d5c92 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 25 Jul 2021 02:16:13 -0500 Subject: [PATCH] Remove no longer needed variables --- mainwindow.cpp | 1 - openlpclient.cpp | 2 -- openlpclient.hpp | 1 - 3 files changed, 4 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 89d8f5e..1ccce5e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -14,7 +14,6 @@ MainWindow::MainWindow(QWidget *parent): QMainWindow(parent) { setWindowTitle(tr("Slide Controller 9000")); const auto mainWidget = new QWidget(this); const auto rootLyt = new QVBoxLayout; - //const auto viewsLayout = new QHBoxLayout; const auto controlsLayout = new QGridLayout; const auto slideView = new SlideView(this); setCentralWidget(mainWidget); diff --git a/openlpclient.cpp b/openlpclient.cpp index ed96922..a4e79eb 100644 --- a/openlpclient.cpp +++ b/openlpclient.cpp @@ -117,13 +117,11 @@ void OpenLPClient::handleSongListResponse(QNetworkReply *reply) { QStringList songList; auto doc = QJsonDocument::fromJson(data); auto items = doc.object()["results"].toObject()["items"].toArray(); - m_songIdMap.clear(); m_songNameMap.clear(); for (const auto &item : items) { auto song = item.toObject(); auto name = song["title"].toString(); auto id = song["id"].toString(); - m_songIdMap[name] = id; m_songNameMap[id] = name; songList.push_back(name); } diff --git a/openlpclient.hpp b/openlpclient.hpp index 56cd16d..1a4bec4 100644 --- a/openlpclient.hpp +++ b/openlpclient.hpp @@ -18,7 +18,6 @@ class OpenLPClient: public QObject { QNetworkAccessManager *m_songListNam = new QNetworkAccessManager(this); QNetworkAccessManager *m_slideListNam = new QNetworkAccessManager(this); QTimer m_pollTimer; - QHash m_songIdMap; QHash m_songNameMap; int m_currentServiceId = -1; QString m_currentSongId;