summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2024-04-03 09:52:55 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2024-04-03 09:53:37 +0200
commit375ba7c8ea4e8c8bc7f08dedfc46884ffb908622 (patch)
tree4b4e798ded14c565bc35e1b29803f7b324a5f4af /src
parent5e5e74b17ac77e93bce7f2158c9d2af5ca2a2ff7 (diff)
; * src/json.c (json_parse_array): Remove unused variable.
Diffstat (limited to 'src')
-rw-r--r--src/json.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/json.c b/src/json.c
index 3c4d90d8d0a..33c3289b394 100644
--- a/src/json.c
+++ b/src/json.c
@@ -1415,7 +1415,6 @@ json_parse_array (struct json_parser *parser)
if (parser->available_depth < 0)
json_signal_error (parser, Qjson_object_too_deep);
- size_t number_of_elements = 0;
Lisp_Object *cdr = &result;
/* This loop collects the array elements in the object workspace
*/
@@ -1442,8 +1441,6 @@ json_parse_array (struct json_parser *parser)
}
c = json_skip_whitespace (parser);
-
- number_of_elements++;
if (c == ']')
{
parser->available_depth++;