Welcome! Log In Create A New Profile

Advanced

[njs] Removing unused argument of njs_parser_property_name().

Dmitry Volyntsev
February 08, 2019 12:24PM
details: https://hg.nginx.org/njs/rev/4e8940c1bef1
branches:
changeset: 771:4e8940c1bef1
user: Dmitry Volyntsev <xeioex@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;
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Removing unused argument of njs_parser_property_name().

Dmitry Volyntsev 55 February 08, 2019 12:24PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready