mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Server controllers: remove unused libraryName variable
This commit is contained in:
parent
0925771f05
commit
f60e17674e
@ -19,7 +19,6 @@ void FolderInfoController::service(HttpRequest &request, HttpResponse &response)
|
|||||||
QString path = QUrl::fromPercentEncoding(request.getPath()).toUtf8();
|
QString path = QUrl::fromPercentEncoding(request.getPath()).toUtf8();
|
||||||
QStringList pathElements = path.split('/');
|
QStringList pathElements = path.split('/');
|
||||||
int libraryId = pathElements.at(2).toInt();
|
int libraryId = pathElements.at(2).toInt();
|
||||||
QString libraryName = DBHelper::getLibraryName(libraryId);
|
|
||||||
qulonglong parentId = pathElements.at(4).toULongLong();
|
qulonglong parentId = pathElements.at(4).toULongLong();
|
||||||
|
|
||||||
serviceComics(libraryId, parentId, response);
|
serviceComics(libraryId, parentId, response);
|
||||||
|
@ -11,8 +11,6 @@
|
|||||||
|
|
||||||
#include <QsLog.h>
|
#include <QsLog.h>
|
||||||
|
|
||||||
#include "db_helper.h"
|
|
||||||
|
|
||||||
using stefanfrings::HttpRequest;
|
using stefanfrings::HttpRequest;
|
||||||
using stefanfrings::HttpResponse;
|
using stefanfrings::HttpResponse;
|
||||||
using stefanfrings::HttpSession;
|
using stefanfrings::HttpSession;
|
||||||
@ -31,7 +29,6 @@ void PageController::service(HttpRequest &request, HttpResponse &response)
|
|||||||
//qDebug("PageController: request to -> %s ",path2.data());
|
//qDebug("PageController: request to -> %s ",path2.data());
|
||||||
|
|
||||||
QStringList pathElements = path.split('/');
|
QStringList pathElements = path.split('/');
|
||||||
QString libraryName = DBHelper::getLibraryName(pathElements.at(2).toInt());
|
|
||||||
qulonglong comicId = pathElements.at(4).toULongLong();
|
qulonglong comicId = pathElements.at(4).toULongLong();
|
||||||
unsigned int page = pathElements.at(6).toUInt();
|
unsigned int page = pathElements.at(6).toUInt();
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@ void FolderInfoControllerV2::service(HttpRequest &request, HttpResponse &respons
|
|||||||
QString path = QUrl::fromPercentEncoding(request.getPath()).toUtf8();
|
QString path = QUrl::fromPercentEncoding(request.getPath()).toUtf8();
|
||||||
QStringList pathElements = path.split('/');
|
QStringList pathElements = path.split('/');
|
||||||
int libraryId = pathElements.at(3).toInt();
|
int libraryId = pathElements.at(3).toInt();
|
||||||
QString libraryName = DBHelper::getLibraryName(libraryId);
|
|
||||||
qulonglong parentId = pathElements.at(5).toULongLong();
|
qulonglong parentId = pathElements.at(5).toULongLong();
|
||||||
|
|
||||||
serviceComics(libraryId, parentId, response);
|
serviceComics(libraryId, parentId, response);
|
||||||
|
@ -11,8 +11,6 @@
|
|||||||
|
|
||||||
#include <QsLog.h>
|
#include <QsLog.h>
|
||||||
|
|
||||||
#include "db_helper.h"
|
|
||||||
|
|
||||||
using stefanfrings::HttpRequest;
|
using stefanfrings::HttpRequest;
|
||||||
using stefanfrings::HttpResponse;
|
using stefanfrings::HttpResponse;
|
||||||
|
|
||||||
@ -33,7 +31,6 @@ void PageControllerV2::service(HttpRequest &request, HttpResponse &response)
|
|||||||
bool remote = path.endsWith("remote");
|
bool remote = path.endsWith("remote");
|
||||||
|
|
||||||
QStringList pathElements = path.split('/');
|
QStringList pathElements = path.split('/');
|
||||||
QString libraryName = DBHelper::getLibraryName(pathElements.at(2).toInt());
|
|
||||||
qulonglong comicId = pathElements.at(5).toULongLong();
|
qulonglong comicId = pathElements.at(5).toULongLong();
|
||||||
unsigned int page = pathElements.at(7).toUInt();
|
unsigned int page = pathElements.at(7).toUInt();
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@ void ReadingListInfoControllerV2::service(HttpRequest &request, HttpResponse &re
|
|||||||
QString path = QUrl::fromPercentEncoding(request.getPath()).toUtf8();
|
QString path = QUrl::fromPercentEncoding(request.getPath()).toUtf8();
|
||||||
QStringList pathElements = path.split('/');
|
QStringList pathElements = path.split('/');
|
||||||
int libraryId = pathElements.at(3).toInt();
|
int libraryId = pathElements.at(3).toInt();
|
||||||
QString libraryName = DBHelper::getLibraryName(libraryId);
|
|
||||||
qulonglong listId = pathElements.at(5).toULongLong();
|
qulonglong listId = pathElements.at(5).toULongLong();
|
||||||
|
|
||||||
serviceComics(libraryId, listId, response);
|
serviceComics(libraryId, listId, response);
|
||||||
|
@ -20,7 +20,6 @@ void TagInfoControllerV2::service(HttpRequest &request, HttpResponse &response)
|
|||||||
QString path = QUrl::fromPercentEncoding(request.getPath()).toUtf8();
|
QString path = QUrl::fromPercentEncoding(request.getPath()).toUtf8();
|
||||||
QStringList pathElements = path.split('/');
|
QStringList pathElements = path.split('/');
|
||||||
int libraryId = pathElements.at(3).toInt();
|
int libraryId = pathElements.at(3).toInt();
|
||||||
QString libraryName = DBHelper::getLibraryName(libraryId);
|
|
||||||
qulonglong listId = pathElements.at(5).toULongLong();
|
qulonglong listId = pathElements.at(5).toULongLong();
|
||||||
|
|
||||||
serviceComics(libraryId, listId, response);
|
serviceComics(libraryId, listId, response);
|
||||||
|
@ -21,7 +21,6 @@ void UpdateComicControllerV2::service(HttpRequest &request, HttpResponse &respon
|
|||||||
QString path = QUrl::fromPercentEncoding(request.getPath()).toUtf8();
|
QString path = QUrl::fromPercentEncoding(request.getPath()).toUtf8();
|
||||||
QStringList pathElements = path.split('/');
|
QStringList pathElements = path.split('/');
|
||||||
qulonglong libraryId = pathElements.at(3).toULongLong();
|
qulonglong libraryId = pathElements.at(3).toULongLong();
|
||||||
QString libraryName = DBHelper::getLibraryName(libraryId);
|
|
||||||
qulonglong comicId = pathElements.at(5).toULongLong();
|
qulonglong comicId = pathElements.at(5).toULongLong();
|
||||||
|
|
||||||
QString postData = QString::fromUtf8(request.getBody());
|
QString postData = QString::fromUtf8(request.getBody());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user