Skip to content

Commit

Permalink
PageController*::service: remove unused libraryName variable
Browse files Browse the repository at this point in the history
Hopefully the code does not rely on the side effects of the removed call
to DBHelper::getLibraryName().
  • Loading branch information
vedgy committed Feb 11, 2021
1 parent 20e9baa commit 1e8db7b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions YACReaderLibrary/server/controllers/v1/pagecontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

#include <QsLog.h>

#include "db_helper.h"

using stefanfrings::HttpRequest;
using stefanfrings::HttpResponse;
using stefanfrings::HttpSession;
Expand All @@ -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();

Expand Down
3 changes: 0 additions & 3 deletions YACReaderLibrary/server/controllers/v2/pagecontroller_v2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

#include <QsLog.h>

#include "db_helper.h"

using stefanfrings::HttpRequest;
using stefanfrings::HttpResponse;

Expand All @@ -33,7 +31,6 @@ void PageControllerV2::service(HttpRequest &request, HttpResponse &response)
bool remote = path.endsWith("remote");

QStringList pathElements = path.split('/');
QString libraryName = DBHelper::getLibraryName(pathElements.at(2).toInt());
qulonglong comicId = pathElements.at(5).toULongLong();
unsigned int page = pathElements.at(7).toUInt();

Expand Down

0 comments on commit 1e8db7b

Please sign in to comment.