🚨 remove redundant assertions

parent a82c80e9
...@@ -6700,8 +6700,6 @@ class basic_json ...@@ -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 ...@@ -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)
......
...@@ -22493,8 +22493,6 @@ class basic_json ...@@ -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 ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment