From 98a31b99793b941ae7c7f4f9ae832c2a34f00bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 2 Oct 2017 11:54:59 +0200 Subject: [PATCH] clean up --- libguh-core/guhconfiguration.h | 2 ++ libguh-core/webserver.cpp | 12 ------------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/libguh-core/guhconfiguration.h b/libguh-core/guhconfiguration.h index 02b7da49..d4a58ded 100644 --- a/libguh-core/guhconfiguration.h +++ b/libguh-core/guhconfiguration.h @@ -117,6 +117,8 @@ private: void setServerUuid(const QUuid &uuid); void setWebServerPublicFolder(const QString & path); + QString defaultWebserverPublicFolderPath() const; + void storeServerConfig(const QString &group, const ServerConfiguration &config); ServerConfiguration readServerConfig(const QString &group, const QString &id); void deleteServerConfig(const QString &group, const QString &id); diff --git a/libguh-core/webserver.cpp b/libguh-core/webserver.cpp index 336717a5..8224f673 100644 --- a/libguh-core/webserver.cpp +++ b/libguh-core/webserver.cpp @@ -139,18 +139,6 @@ void WebServer::sendHttpReply(HttpReply *reply) socket->write(reply->data()); } -QString WebServer::defaultPublicFolderPath() const -{ - QString publicFolderPath; - if (!qgetenv("SNAP").isEmpty()) { - publicFolderPath = QString(qgetenv("SNAP")) + "/guh-webinterface"; - } else { - publicFolderPath = - } - - -} - bool WebServer::verifyFile(QSslSocket *socket, const QString &fileName) { QFileInfo file(fileName);