]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/json.c (json_parse_array): Remove unused variable.
authorMattias EngdegÄrd <mattiase@acm.org>
Wed, 3 Apr 2024 07:52:55 +0000 (09:52 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 3 Apr 2024 08:37:43 +0000 (10:37 +0200)
(cherry picked from commit 375ba7c8ea4e8c8bc7f08dedfc46884ffb908622)

src/json.c

index 3c4d90d8d0ae38a99a4dfdc38e6982a90e5003e5..33c3289b394436ca57911b604b6c9e40ddea946d 100644 (file)
@@ -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++;