Skip to content

Commit 867e06e

Browse files
committed
minor refactorings
1 parent 54278d0 commit 867e06e

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

cucumber_cpp/library/cucumber_expression/test/TestTransformation.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#include "cucumber_cpp/library/cucumber_expression/Expression.hpp"
32
#include "cucumber_cpp/library/cucumber_expression/ParameterRegistry.hpp"
43
#include "yaml-cpp/node/node.h"
@@ -10,7 +9,6 @@
109
#include <filesystem>
1110
#include <format>
1211
#include <gtest/gtest.h>
13-
#include <memory>
1412
#include <string>
1513
#include <utility>
1614
#include <vector>

cucumber_cpp/library/formatter/PrettyPrinter.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ namespace cucumber_cpp::library::formatter
185185

186186
void PrettyPrinter::PrintGherkinLine(std::string_view title, std::function<std::string(std::string_view)> formatTitle, std::optional<std::string_view> uri, std::optional<std::size_t> line, std::size_t indent, std::size_t maxContentLength)
187187
{
188-
if (title.length() > maxContentLength)
189-
{
190-
std::abort();
191-
}
192188
const auto padding = maxContentLength - title.length();
193189

194190
if (uri.has_value() && line.has_value())

cucumber_cpp/library/formatter/PrettyPrinter.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "cucumber_cpp/library/formatter/helper/GherkinDocumentParser.hpp"
2020
#include <cstddef>
2121
#include <functional>
22-
#include <gtest/gtest.h>
2322
#include <map>
2423
#include <optional>
2524
#include <set>

0 commit comments

Comments
 (0)