Skip to content

Commit 76c9f4f

Browse files
authored
Merge pull request simdjson#941 from simdjson/jkeiser/forgot
Remove unnecessary functions
2 parents 942ef3b + f8f36c0 commit 76c9f4f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/generic/stage1/json_string_scanner.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ struct json_string_block {
1313
really_inline uint64_t string_start() const { return _quote & ~_in_string; }
1414
// Only characters inside the string (not including the quotes)
1515
really_inline uint64_t string_content() const { return _in_string & ~_quote; }
16-
// Whether the entire block is strings, or not
17-
really_inline bool all_string() { return _in_string == 0xFFFFFFFFFFFFFFFFULL; }
1816
// Return a mask of whether the given characters are inside a string (only works on non-quotes)
1917
really_inline uint64_t non_quote_inside_string(uint64_t mask) const { return mask & _in_string; }
2018
// Return a mask of whether the given characters are inside a string (only works on non-quotes)
@@ -37,7 +35,6 @@ class json_string_scanner {
3735
public:
3836
really_inline json_string_block next(const simd::simd8x64<uint8_t> in);
3937
really_inline error_code finish(bool streaming);
40-
really_inline bool in_unclosed_string() { return prev_in_string; }
4138

4239
private:
4340
// Intended to be defined by the implementation
@@ -133,7 +130,7 @@ really_inline json_string_block json_string_scanner::next(const simd::simd8x64<u
133130
}
134131

135132
really_inline error_code json_string_scanner::finish(bool streaming) {
136-
if (in_unclosed_string() and (not streaming)) {
133+
if (prev_in_string and (not streaming)) {
137134
return UNCLOSED_STRING;
138135
}
139136
return SUCCESS;

0 commit comments

Comments
 (0)