mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-08-07 12:59:45 +00:00
Revert "Pass the ResponseFactory object down to the Response itself."
This reverts commit 3bc6c56c03
.
This commit is contained in:
parent
3bc6c56c03
commit
73707c2ad0
12 changed files with 11 additions and 38 deletions
|
@ -21,7 +21,6 @@
|
|||
#include "ini_file.hpp"
|
||||
#include "settings_bag.hpp"
|
||||
#include "safe_stack_object.hpp"
|
||||
#include "response_factory.hpp"
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
#include <string>
|
||||
|
@ -58,12 +57,11 @@ namespace tawashi {
|
|||
class IndexResponseCustomMustache : public IndexResponse {
|
||||
public:
|
||||
IndexResponseCustomMustache (
|
||||
const Kakoune::SafePtr<ResponseFactory>& parFactory,
|
||||
const Kakoune::SafePtr<SettingsBag>& parSettings,
|
||||
std::ostream* parStreamOut,
|
||||
const Kakoune::SafePtr<cgi::Env>& parCgiEnv
|
||||
) :
|
||||
IndexResponse(parFactory, parSettings, parStreamOut, parCgiEnv)
|
||||
IndexResponse(parSettings, parStreamOut, parCgiEnv)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -108,8 +106,7 @@ TEST_CASE ("Index response", "[index][response]") {
|
|||
|
||||
std::stringstream response_stream;
|
||||
|
||||
SafeStackObject<tawashi::ResponseFactory> resp_factory(settings, fake_env);
|
||||
tawashi::IndexResponseCustomMustache response(resp_factory, settings, &response_stream, fake_env);
|
||||
tawashi::IndexResponseCustomMustache response(settings, &response_stream, fake_env);
|
||||
response.send();
|
||||
|
||||
response_stream.seekg(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue