🚨 remove redundant assertions

This commit is contained in:
Niels Lohmann 2020-05-22 14:19:07 +02:00
parent a82c80e9af
commit 88292d9499
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
2 changed files with 0 additions and 6 deletions

View file

@ -6700,8 +6700,6 @@ class basic_json
input_format_t format = input_format_t::json, input_format_t format = input_format_t::json,
const bool strict = true) const bool strict = true)
{ {
assert(sax);
auto ia = detail::input_adapter(std::forward<InputType>(i)); auto ia = detail::input_adapter(std::forward<InputType>(i));
return format == input_format_t::json return format == input_format_t::json
? parser(std::move(ia)).sax_parse(sax, strict) ? parser(std::move(ia)).sax_parse(sax, strict)
@ -6714,7 +6712,6 @@ class basic_json
input_format_t format = input_format_t::json, input_format_t format = input_format_t::json,
const bool strict = true) const bool strict = true)
{ {
assert(sax);
auto ia = i.get(); auto ia = i.get();
return format == input_format_t::json return format == input_format_t::json
? parser(std::move(ia)).sax_parse(sax, strict) ? parser(std::move(ia)).sax_parse(sax, strict)

View file

@ -22493,8 +22493,6 @@ class basic_json
input_format_t format = input_format_t::json, input_format_t format = input_format_t::json,
const bool strict = true) const bool strict = true)
{ {
assert(sax);
auto ia = detail::input_adapter(std::forward<InputType>(i)); auto ia = detail::input_adapter(std::forward<InputType>(i));
return format == input_format_t::json return format == input_format_t::json
? parser(std::move(ia)).sax_parse(sax, strict) ? parser(std::move(ia)).sax_parse(sax, strict)
@ -22507,7 +22505,6 @@ class basic_json
input_format_t format = input_format_t::json, input_format_t format = input_format_t::json,
const bool strict = true) const bool strict = true)
{ {
assert(sax);
auto ia = i.get(); auto ia = i.get();
return format == input_format_t::json return format == input_format_t::json
? parser(std::move(ia)).sax_parse(sax, strict) ? parser(std::move(ia)).sax_parse(sax, strict)