Dropped unused params from ContentResponse ctor

This commit is contained in:
Veloman Yunkan 2022-06-26 13:41:15 +04:00
parent 0cf4850a9b
commit c73e6f9a81
2 changed files with 3 additions and 5 deletions

View File

@ -414,7 +414,7 @@ MHD_Result Response::send(const RequestContext& request, MHD_Connection* connect
return ret; return ret;
} }
ContentResponse::ContentResponse(const std::string& root, bool verbose, bool raw, bool /*withTaskbar*/, bool /*withLibraryButton*/, bool blockExternalLinks, const std::string& content, const std::string& mimetype) : ContentResponse::ContentResponse(const std::string& root, bool verbose, bool raw, bool blockExternalLinks, const std::string& content, const std::string& mimetype) :
Response(verbose), Response(verbose),
m_root(root), m_root(root),
m_content(content), m_content(content),
@ -436,8 +436,6 @@ std::unique_ptr<ContentResponse> ContentResponse::build(
server.m_root, server.m_root,
server.m_verbose.load(), server.m_verbose.load(),
raw, raw,
/*server.m_withTaskbar && !isHomePage*/ false, // XXX
/*server.m_withLibraryButton*/ false, // XXX
server.m_blockExternalLinks, server.m_blockExternalLinks,
content, content,
mimetype)); mimetype));

View File

@ -84,17 +84,17 @@ class ContentResponse : public Response {
const std::string& root, const std::string& root,
bool verbose, bool verbose,
bool raw, bool raw,
bool withTaskbar,
bool withLibraryButton,
bool blockExternalLinks, bool blockExternalLinks,
const std::string& content, const std::string& content,
const std::string& mimetype); const std::string& mimetype);
static std::unique_ptr<ContentResponse> build( static std::unique_ptr<ContentResponse> build(
const InternalServer& server, const InternalServer& server,
const std::string& content, const std::string& content,
const std::string& mimetype, const std::string& mimetype,
bool isHomePage = false, bool isHomePage = false,
bool raw = false); bool raw = false);
static std::unique_ptr<ContentResponse> build( static std::unique_ptr<ContentResponse> build(
const InternalServer& server, const InternalServer& server,
const std::string& template_str, const std::string& template_str,