Server controllers: remove unused libraryName variable

This commit is contained in:
Igor Kushnir
2021-02-05 17:40:58 +02:00
parent 0925771f05
commit f60e17674e
7 changed files with 0 additions and 11 deletions

View File

@ -19,7 +19,6 @@ void FolderInfoController::service(HttpRequest &request, HttpResponse &response)
QString path = QUrl::fromPercentEncoding(request.getPath()).toUtf8();
QStringList pathElements = path.split('/');
int libraryId = pathElements.at(2).toInt();
QString libraryName = DBHelper::getLibraryName(libraryId);
qulonglong parentId = pathElements.at(4).toULongLong();
serviceComics(libraryId, parentId, response);

View File

@ -11,8 +11,6 @@
#include <QsLog.h>
#include "db_helper.h"
using stefanfrings::HttpRequest;
using stefanfrings::HttpResponse;
using stefanfrings::HttpSession;
@ -31,7 +29,6 @@ void PageController::service(HttpRequest &request, HttpResponse &response)
//qDebug("PageController: request to -> %s ",path2.data());
QStringList pathElements = path.split('/');
QString libraryName = DBHelper::getLibraryName(pathElements.at(2).toInt());
qulonglong comicId = pathElements.at(4).toULongLong();
unsigned int page = pathElements.at(6).toUInt();