Don't check max depth on startup

This commit is contained in:
John Keiser 2020-08-03 17:49:14 -07:00
parent e6896ee71e
commit 553e6d7549
1 changed files with 0 additions and 1 deletions

View File

@ -43,7 +43,6 @@ struct structural_parser : structural_iterator {
parser.containing_scope[depth].count = 0;
tape.skip(); // We don't actually *write* the start element until the end.
parser.is_array[depth] = false;
if (depth >= parser.max_depth()) { log_error("Exceeded max depth!"); return DEPTH_ERROR; }
return SUCCESS;
}