[PATCH] Remove duplicate implementation of njs_parser_token()

洪志道 hongzhidao at gmail.com
Mon Oct 17 08:25:37 UTC 2016


Hello!

It seems the file njs/njs_nonrecursive_parser.c is unused.

2016-10-17 15:29 GMT+08:00 Piotr Sikora <piotrsikora at google.com>:

> # 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)
>  {
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20161017/7b054870/attachment.html>


More information about the nginx-devel mailing list