@@ -28,7 +28,6 @@ struct tape_builder {
28
28
29
29
// increment_count increments the count of keys in an object or values in an array.
30
30
SIMDJSON_WARN_UNUSED simdjson_really_inline error_code increment_count (json_iterator &iter) noexcept ;
31
- simdjson_really_inline bool in_array (json_iterator &iter) noexcept ;
32
31
33
32
private:
34
33
/* * Next location to write to tape */
@@ -108,19 +107,16 @@ SIMDJSON_WARN_UNUSED simdjson_really_inline error_code tape_builder::visit_empty
108
107
SIMDJSON_WARN_UNUSED simdjson_really_inline error_code tape_builder::visit_document_start (json_iterator &iter) noexcept {
109
108
iter.log_start_value (" document" );
110
109
start_container (iter);
111
- iter.dom_parser .is_array [iter.depth ] = false ;
112
110
return SUCCESS;
113
111
}
114
112
SIMDJSON_WARN_UNUSED simdjson_really_inline error_code tape_builder::visit_object_start (json_iterator &iter) noexcept {
115
113
iter.log_start_value (" object" );
116
114
start_container (iter);
117
- iter.dom_parser .is_array [iter.depth ] = false ;
118
115
return SUCCESS;
119
116
}
120
117
SIMDJSON_WARN_UNUSED simdjson_really_inline error_code tape_builder::visit_array_start (json_iterator &iter) noexcept {
121
118
iter.log_start_value (" array" );
122
119
start_container (iter);
123
- iter.dom_parser .is_array [iter.depth ] = true ;
124
120
return SUCCESS;
125
121
}
126
122
@@ -147,9 +143,6 @@ SIMDJSON_WARN_UNUSED simdjson_really_inline error_code tape_builder::increment_c
147
143
iter.dom_parser .open_containers [iter.depth ].count ++; // we have a key value pair in the object at parser.dom_parser.depth - 1
148
144
return SUCCESS;
149
145
}
150
- simdjson_really_inline bool tape_builder::in_array (json_iterator &iter) noexcept {
151
- return iter.dom_parser .is_array [iter.depth ];
152
- }
153
146
154
147
simdjson_really_inline tape_builder::tape_builder (dom::document &doc) noexcept : tape{doc.tape .get ()}, current_string_buf_loc{doc.string_buf .get ()} {}
155
148
0 commit comments