[njs] Removed unneeded variable after fd956d2a25a3.

Dmitry Volyntsev xeioex at nginx.com
Wed May 17 04:01:44 UTC 2023


details:   https://hg.nginx.org/njs/rev/ce29debb0b3d
branches:  
changeset: 2117:ce29debb0b3d
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Tue May 16 20:58:23 2023 -0700
description:
Removed unneeded variable after fd956d2a25a3.

diffstat:

 external/njs_query_string_module.c |  6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diffs (37 lines):

diff -r 1f84f3c34bb0 -r ce29debb0b3d external/njs_query_string_module.c
--- a/external/njs_query_string_module.c	Wed May 10 22:36:53 2023 -0700
+++ b/external/njs_query_string_module.c	Tue May 16 20:58:23 2023 -0700
@@ -124,7 +124,6 @@ njs_query_string_decode(njs_vm_t *vm, nj
     size_t size)
 {
     u_char                *dst;
-    size_t                length;
     uint32_t              cp;
     njs_int_t             ret;
     njs_chb_t             chain;
@@ -156,7 +155,6 @@ njs_query_string_decode(njs_vm_t *vm, nj
     njs_utf8_decode_init(&ctx);
 
     cp = 0;
-    length = 0;
 
     p = start;
     end = p + size;
@@ -190,8 +188,6 @@ njs_query_string_decode(njs_vm_t *vm, nj
         }
 
         njs_chb_written(&chain, njs_utf8_encode(dst, cp) - dst);
-
-        length++;
     }
 
     if (njs_slow_path(cp == NJS_UNICODE_CONTINUE)) {
@@ -202,8 +198,6 @@ njs_query_string_decode(njs_vm_t *vm, nj
 
         njs_chb_written(&chain,
                         njs_utf8_encode(dst, NJS_UNICODE_REPLACEMENT) - dst);
-
-        length++;
     }
 
     ret = njs_vm_value_string_create_chb(vm, value, &chain);


More information about the nginx-devel mailing list