mirror of
				https://github.com/gtalent/sc9k.git
				synced 2025-10-31 12:39:08 -05:00 
			
		
		
		
	Remove no longer needed variables
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
| @@ -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); | ||||
| 	} | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user