Remove no longer needed variables

This commit is contained in:
Gary Talent 2021-07-25 02:16:13 -05:00
parent 3ebe14b411
commit d52e31cec5
3 changed files with 0 additions and 4 deletions

View File

@ -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);

View File

@ -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);
}

View File

@ -18,7 +18,6 @@ class OpenLPClient: public QObject {
QNetworkAccessManager *m_songListNam = new QNetworkAccessManager(this);
QNetworkAccessManager *m_slideListNam = new QNetworkAccessManager(this);
QTimer m_pollTimer;
QHash<QString, QString> m_songIdMap;
QHash<QString, QString> m_songNameMap;
int m_currentServiceId = -1;
QString m_currentSongId;