Skip to content

Commit 9287423

Browse files
committed
decoder: Remove unused argument
1 parent e5ebc1f commit 9287423

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

php_simdjson.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,10 @@ PHP_FUNCTION(simdjson_key_count) {
330330

331331
simdjson_php_error_code error;
332332
if (SIMDJSON_SHOULD_REUSE_PARSER(ZSTR_LEN(json))) {
333-
error = php_simdjson_key_count(simdjson_get_reused_parser(), json, ZSTR_VAL(key), return_value, depth, throw_if_uncountable);
333+
error = php_simdjson_key_count(simdjson_get_reused_parser(), json, ZSTR_VAL(key), return_value, depth);
334334
} else {
335335
simdjson_php_parser *simdjson_php_parser = php_simdjson_create_parser();
336-
error = php_simdjson_key_count(simdjson_php_parser, json, ZSTR_VAL(key), return_value, depth, throw_if_uncountable);
336+
error = php_simdjson_key_count(simdjson_php_parser, json, ZSTR_VAL(key), return_value, depth);
337337
php_simdjson_free_parser(simdjson_php_parser);
338338
}
339339

php_simdjson.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ PHP_SIMDJSON_API uint8_t php_simdjson_key_exists(struct simdjson_php_parser* par
217217
*
218218
* @see https://www.rfc-editor.org/rfc/rfc6901.html
219219
*/
220-
PHP_SIMDJSON_API simdjson_php_error_code php_simdjson_key_count(struct simdjson_php_parser* parser, const zend_string *json, const char *key, zval *return_value, size_t depth, bool fail_if_uncountable);
220+
PHP_SIMDJSON_API simdjson_php_error_code php_simdjson_key_count(struct simdjson_php_parser* parser, const zend_string *json, const char *key, zval *return_value, size_t depth);
221221

222222
END_EXTERN_C()
223223

src/simdjson_decoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ PHP_SIMDJSON_API simdjson_php_error_code php_simdjson_key_exists(simdjson_php_pa
651651

652652
/* }}} */
653653

654-
PHP_SIMDJSON_API simdjson_php_error_code php_simdjson_key_count(simdjson_php_parser* parser, const zend_string *json, const char *key, zval *return_value, size_t depth, bool fail_if_uncountable) /* {{{ */ {
654+
PHP_SIMDJSON_API simdjson_php_error_code php_simdjson_key_count(simdjson_php_parser* parser, const zend_string *json, const char *key, zval *return_value, size_t depth) /* {{{ */ {
655655
simdjson::dom::element doc;
656656
simdjson::dom::element element;
657657

0 commit comments

Comments
 (0)