From 3217ac2c099085b7bfd2640e1ad91751287697e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Kratochv=C3=ADl?= Date: Tue, 2 Oct 2018 22:44:32 +0200 Subject: [PATCH] chore: remove unused function --- test/draftertest.h | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/test/draftertest.h b/test/draftertest.h index 260763cea..8fa4dc5df 100644 --- a/test/draftertest.h +++ b/test/draftertest.h @@ -103,15 +103,6 @@ namespace draftertest struct FixtureHelper { - static std::unique_ptr parseAndSerialize(const std::string& source, - snowcrash::ParseResult& blueprint, - const drafter::WrapperOptions& options) - { - drafter::ConversionContext context(source.c_str(), options); - - return WrapRefract(blueprint, context); - } - static const std::string printDiff(const std::string& actual, const std::string& expected) { // First, convert strings into arrays of lines. @@ -151,10 +142,6 @@ namespace draftertest return ext::json; } - typedef std::unique_ptr (*Wrapper)(const std::string& source, - snowcrash::ParseResult& blueprint, - const drafter::WrapperOptions& options); - static bool handleResultJSON( const std::string& fixturePath, const drafter::WrapperOptions& options, bool mustBeOk = false) { @@ -168,7 +155,9 @@ namespace draftertest int result = snowcrash::parse(source, snowcrash::ExportSourcemapOption, blueprint); std::ostringstream outStream; - if (auto parsed = parseAndSerialize(source, blueprint, options)) { + drafter::ConversionContext context(source.c_str(), options); + + if (auto parsed = WrapRefract(blueprint, context)) { auto soValue = refract::serialize::renderSo(*parsed, options.generateSourceMap); drafter::utils::so::serialize_json(outStream, soValue); }