[njs] Removed unused field.

Igor Sysoev igor at sysoev.ru
Tue Aug 8 15:07:26 UTC 2017


details:   http://hg.nginx.org/njs/rev/bc306c37d037
branches:  
changeset: 392:bc306c37d037
user:      Igor Sysoev <igor at sysoev.ru>
date:      Tue Aug 08 17:47:55 2017 +0300
description:
Removed unused field.

diffstat:

 njs/njs_parser.c            |  12 ------------
 njs/njs_parser.h            |   2 --
 njs/njs_parser_expression.c |   2 --
 3 files changed, 0 insertions(+), 16 deletions(-)

diffs (81 lines):

diff -r e2baf506be4c -r bc306c37d037 njs/njs_parser.c
--- a/njs/njs_parser.c	Tue Aug 08 17:47:53 2017 +0300
+++ b/njs/njs_parser.c	Tue Aug 08 17:47:55 2017 +0300
@@ -934,8 +934,6 @@ njs_parser_if_statement(njs_vm_t *vm, nj
     njs_token_t        token;
     njs_parser_node_t  *node, *cond, *stmt;
 
-    parser->branch = 1;
-
     token = njs_parser_grouping_expression(vm, parser);
     if (nxt_slow_path(token <= NJS_TOKEN_ILLEGAL)) {
         return token;
@@ -995,8 +993,6 @@ njs_parser_switch_statement(njs_vm_t *vm
     njs_token_t        token;
     njs_parser_node_t  *node, *swtch, *branch, *dflt, **last;
 
-    parser->branch = 1;
-
     node = NULL;
     branch = NULL;
     dflt = NULL;
@@ -1114,8 +1110,6 @@ njs_parser_while_statement(njs_vm_t *vm,
     njs_token_t        token;
     njs_parser_node_t  *node, *cond;
 
-    parser->branch = 1;
-
     token = njs_parser_grouping_expression(vm, parser);
     if (nxt_slow_path(token <= NJS_TOKEN_ILLEGAL)) {
         return token;
@@ -1150,8 +1144,6 @@ njs_parser_do_while_statement(njs_vm_t *
     njs_token_t        token;
     njs_parser_node_t  *node, *stmt;
 
-    parser->branch = 1;
-
     token = njs_parser_token(parser);
     if (nxt_slow_path(token <= NJS_TOKEN_ILLEGAL)) {
         return token;
@@ -1195,8 +1187,6 @@ njs_parser_for_statement(njs_vm_t *vm, n
     njs_token_t        token;
     njs_parser_node_t  *node, *init, *condition, *update, *cond, *body;
 
-    parser->branch = 1;
-
     init = NULL;
     condition = NULL;
     update = NULL;
@@ -1580,8 +1570,6 @@ njs_parser_try_statement(njs_vm_t *vm, n
     njs_variable_t     *var;
     njs_parser_node_t  *node, *try, *catch;
 
-    parser->branch = 1;
-
     token = njs_parser_try_block(vm, parser);
     if (nxt_slow_path(token <= NJS_TOKEN_ILLEGAL)) {
         return token;
diff -r e2baf506be4c -r bc306c37d037 njs/njs_parser.h
--- a/njs/njs_parser.h	Tue Aug 08 17:47:53 2017 +0300
+++ b/njs/njs_parser.h	Tue Aug 08 17:47:55 2017 +0300
@@ -314,8 +314,6 @@ struct njs_parser_s {
 
     nxt_array_t                     *index_cache;
 
-    uint8_t                         branch;       /* 1 bit */
-
     /* Parsing Function() or eval(). */
     uint8_t                         runtime;      /* 1 bit */
 
diff -r e2baf506be4c -r bc306c37d037 njs/njs_parser_expression.c
--- a/njs/njs_parser_expression.c	Tue Aug 08 17:47:53 2017 +0300
+++ b/njs/njs_parser_expression.c	Tue Aug 08 17:47:55 2017 +0300
@@ -518,8 +518,6 @@ njs_parser_conditional_expression(njs_vm
             return token;
         }
 
-        parser->branch = 1;
-
         token = njs_parser_token(parser);
         if (nxt_slow_path(token <= NJS_TOKEN_ILLEGAL)) {
             return token;


More information about the nginx-devel mailing list