Remove superfluous assert

The size of lines_ gets checked at runtime in the legacy() function below.
This commit is contained in:
MarkusTeufelberger
2017-01-15 14:23:47 +01:00
committed by Nik Bougalis
parent 15a30c745c
commit 7ca03d3bca

View File

@@ -87,10 +87,7 @@ public:
if (lines_.empty ())
lines_.emplace_back (std::move (value));
else
{
assert (lines_.size () == 1);
lines_[0] = std::move (value);
}
}
/**
@@ -104,7 +101,7 @@ public:
{
if (lines_.empty ())
return "";
else if (lines_.size () > 1)
if (lines_.size () > 1)
Throw<std::runtime_error> (
"A legacy value must have exactly one line. Section: " + name_);
return lines_[0];