[PATCH] Remove duplicate implementation of njs_parser_token()

Piotr Sikora piotrsikora at google.com
Mon Oct 17 07:29:40 UTC 2016


# HG changeset patch
# User Piotr Sikora <piotrsikora at google.com>
# Date 1476689340 25200
#      Mon Oct 17 00:29:00 2016 -0700
# Node ID 11abc80a5a442b56ee0618834b88510369a765d6
# Parent  8046b999aaaf95980e89a6d0620657bc4123342b
Remove duplicate implementation of njs_parser_token().

Signed-off-by: Piotr Sikora <piotrsikora at google.com>

diff -r 8046b999aaaf -r 11abc80a5a44 njs/njs_nonrecursive_parser.c
--- a/njs/njs_nonrecursive_parser.c
+++ b/njs/njs_nonrecursive_parser.c
@@ -116,24 +116,6 @@ njs_nonrecursive_parser(njs_vm_t *vm, nj
 }
 
 
-njs_token_t
-njs_parser_token(njs_parser_t *parser)
-{
-    njs_token_t  token;
-
-    do {
-        token = njs_lexer_token(parser->lexer);
-
-        if (nxt_slow_path(token <= NJS_TOKEN_ILLEGAL)) {
-            return token;
-        }
-
-    } while (nxt_slow_path(token == NJS_TOKEN_LINE_END));
-
-    return token;
-}
-
-
 static void *
 njs_parser_stack_pop(njs_parser_t *parser)
 {



More information about the nginx-devel mailing list