From 88292d949939b4f1b0dbf8a11fb39db6a7e91e15 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 22 May 2020 14:19:07 +0200 Subject: [PATCH] :rotating_light: remove redundant assertions --- include/nlohmann/json.hpp | 3 --- single_include/nlohmann/json.hpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index df006694..2195dcb4 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -6700,8 +6700,6 @@ class basic_json input_format_t format = input_format_t::json, const bool strict = true) { - assert(sax); - auto ia = detail::input_adapter(std::forward(i)); return format == input_format_t::json ? parser(std::move(ia)).sax_parse(sax, strict) @@ -6714,7 +6712,6 @@ class basic_json input_format_t format = input_format_t::json, const bool strict = true) { - assert(sax); auto ia = i.get(); return format == input_format_t::json ? parser(std::move(ia)).sax_parse(sax, strict) diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 5741303f..06ebd168 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -22493,8 +22493,6 @@ class basic_json input_format_t format = input_format_t::json, const bool strict = true) { - assert(sax); - auto ia = detail::input_adapter(std::forward(i)); return format == input_format_t::json ? parser(std::move(ia)).sax_parse(sax, strict) @@ -22507,7 +22505,6 @@ class basic_json input_format_t format = input_format_t::json, const bool strict = true) { - assert(sax); auto ia = i.get(); return format == input_format_t::json ? parser(std::move(ia)).sax_parse(sax, strict)