ruby-changes:35707
From: nobu <ko1@a...>
Date: Sun, 5 Oct 2014 00:08:04 +0900 (JST)
Subject: [ruby-changes:35707] nobu:r47789 (trunk): parse.y: remove unused argument
nobu 2014-10-05 00:07:51 +0900 (Sun, 05 Oct 2014) New Revision: 47789 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47789 Log: parse.y: remove unused argument * parse.y (list_concat): remove unused argument parser, since never allocates new node. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 47788) +++ parse.y (revision 47789) @@ -376,8 +376,7 @@ static NODE *block_append_gen(struct par https://github.com/ruby/ruby/blob/trunk/parse.y#L376 #define block_append(h,t) block_append_gen(parser,(h),(t)) static NODE *list_append_gen(struct parser_params*,NODE*,NODE*); #define list_append(l,i) list_append_gen(parser,(l),(i)) -static NODE *list_concat_gen(struct parser_params*,NODE*,NODE*); -#define list_concat(h,t) list_concat_gen(parser,(h),(t)) +static NODE *list_concat(NODE*,NODE*); static NODE *arg_append_gen(struct parser_params*,NODE*,NODE*); #define arg_append(h,t) arg_append_gen(parser,(h),(t)) static NODE *arg_concat_gen(struct parser_params*,NODE*,NODE*); @@ -8463,7 +8462,7 @@ list_append_gen(struct parser_params *pa https://github.com/ruby/ruby/blob/trunk/parse.y#L8462 /* concat two lists */ static NODE* -list_concat_gen(struct parser_params *parser, NODE *head, NODE *tail) +list_concat(NODE *head, NODE *tail) { NODE *last; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/