1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-07-02 14:04:16 +00:00

Revert "Pass the ResponseFactory object down to the Response itself."

This reverts commit 3bc6c56c03.
This commit is contained in:
King_DuckZ 2017-05-12 22:18:03 +01:00
parent 3bc6c56c03
commit 73707c2ad0
12 changed files with 11 additions and 38 deletions

View file

@ -23,7 +23,6 @@
#include "pathname/pathname.hpp"
#include "list_highlight_langs.hpp"
#include "cgi_env.hpp"
#include "response_factory.hpp"
#include <utility>
#include <cassert>
#include <fstream>
@ -109,14 +108,12 @@ namespace tawashi {
} //unnamed namespace
Response::Response (
const Kakoune::SafePtr<ResponseFactory>& parFactory,
const Kakoune::SafePtr<SettingsBag>& parSettings,
std::ostream* parStreamOut,
const Kakoune::SafePtr<cgi::Env>& parCgiEnv,
bool parWantRedis
) :
m_resp_value(g_def_response_type),
m_factory(parFactory),
//m_page_basename(fetch_page_basename(m_cgi_env)),
m_cgi_env(parCgiEnv),
m_settings(parSettings),
@ -127,7 +124,6 @@ namespace tawashi {
{
assert(m_cgi_env);
assert(m_stream_out);
assert(m_factory);
if (parWantRedis) {
m_redis = std::make_unique<redis::IncRedis>(make_incredis(*parSettings));