From 7ca03d3bca456c1f45baf79cfde609a79a95554f Mon Sep 17 00:00:00 2001 From: MarkusTeufelberger Date: Sun, 15 Jan 2017 14:23:47 +0100 Subject: [PATCH] Remove superfluous assert The size of lines_ gets checked at runtime in the legacy() function below. --- src/ripple/basics/BasicConfig.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ripple/basics/BasicConfig.h b/src/ripple/basics/BasicConfig.h index 6e3a688f31..3bf51f056d 100644 --- a/src/ripple/basics/BasicConfig.h +++ b/src/ripple/basics/BasicConfig.h @@ -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 ( "A legacy value must have exactly one line. Section: " + name_); return lines_[0];