[njs] Removing unused argument of njs_parser_property_name().

Dmitry Volyntsev xeioex at nginx.com
Fri Feb 8 17:22:46 UTC 2019


details:   https://hg.nginx.org/njs/rev/4e8940c1bef1
branches:  
changeset: 771:4e8940c1bef1
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Fri Feb 08 20:22:28 2019 +0300
description:
Removing unused argument of njs_parser_property_name().

diffstat:

 njs/njs_parser.c            |  2 +-
 njs/njs_parser.h            |  3 +--
 njs/njs_parser_expression.c |  4 ++--
 3 files changed, 4 insertions(+), 5 deletions(-)

diffs (46 lines):

diff -r 7978bb236657 -r 4e8940c1bef1 njs/njs_parser.c
--- a/njs/njs_parser.c	Fri Feb 08 20:14:55 2019 +0300
+++ b/njs/njs_parser.c	Fri Feb 08 20:22:28 2019 +0300
@@ -2191,7 +2191,7 @@ njs_parser_object(njs_vm_t *vm, njs_pars
             return njs_parser_token(parser);
 
         case NJS_TOKEN_NAME:
-            token = njs_parser_property_name(vm, parser, token);
+            token = njs_parser_property_name(vm, parser);
             break;
 
         case NJS_TOKEN_NUMBER:
diff -r 7978bb236657 -r 4e8940c1bef1 njs/njs_parser.h
--- a/njs/njs_parser.h	Fri Feb 08 20:14:55 2019 +0300
+++ b/njs/njs_parser.h	Fri Feb 08 20:22:28 2019 +0300
@@ -320,8 +320,7 @@ njs_token_t njs_parser_assignment_expres
     njs_parser_t *parser, njs_token_t token);
 njs_token_t njs_parser_terminal(njs_vm_t *vm, njs_parser_t *parser,
     njs_token_t token);
-njs_token_t njs_parser_property_name(njs_vm_t *vm, njs_parser_t *parser,
-    njs_token_t token);
+njs_token_t njs_parser_property_name(njs_vm_t *vm, njs_parser_t *parser);
 njs_token_t njs_parser_property_token(njs_parser_t *parser);
 njs_token_t njs_parser_token(njs_parser_t *parser);
 nxt_int_t njs_parser_string_create(njs_vm_t *vm, njs_value_t *value);
diff -r 7978bb236657 -r 4e8940c1bef1 njs/njs_parser_expression.c
--- a/njs/njs_parser_expression.c	Fri Feb 08 20:14:55 2019 +0300
+++ b/njs/njs_parser_expression.c	Fri Feb 08 20:22:28 2019 +0300
@@ -993,7 +993,7 @@ njs_parser_property_expression(njs_vm_t 
                 return NJS_TOKEN_ILLEGAL;
             }
 
-            token = njs_parser_property_name(vm, parser, token);
+            token = njs_parser_property_name(vm, parser);
 
         } else {
             token = njs_parser_token(parser);
@@ -1015,7 +1015,7 @@ njs_parser_property_expression(njs_vm_t 
 
 
 njs_token_t
-njs_parser_property_name(njs_vm_t *vm, njs_parser_t *parser, njs_token_t token)
+njs_parser_property_name(njs_vm_t *vm, njs_parser_t *parser)
 {
     nxt_int_t          ret;
     njs_parser_node_t  *node;


More information about the nginx-devel mailing list