ruby-changes:49573
From: yui-knk <ko1@a...>
Date: Mon, 8 Jan 2018 21:40:03 +0900 (JST)
Subject: [ruby-changes:49573] yui-knk:r61689 (trunk): parse.y (remove_duplicate_keys): Remove a not used argument
yui-knk 2018-01-08 21:39:58 +0900 (Mon, 08 Jan 2018) New Revision: 61689 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61689 Log: parse.y (remove_duplicate_keys): Remove a not used argument Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 61688) +++ parse.y (revision 61689) @@ -10486,7 +10486,7 @@ append_literal_keys(st_data_t k, st_data https://github.com/ruby/ruby/blob/trunk/parse.y#L10486 } static NODE * -remove_duplicate_keys(struct parser_params *parser, NODE *hash, const YYLTYPE *location) +remove_duplicate_keys(struct parser_params *parser, NODE *hash) { st_table *literal_keys = st_init_numtable_with_size(hash->nd_alen / 2); NODE *result = 0; @@ -10521,7 +10521,7 @@ remove_duplicate_keys(struct parser_para https://github.com/ruby/ruby/blob/trunk/parse.y#L10521 static NODE * new_hash_gen(struct parser_params *parser, NODE *hash, const YYLTYPE *location) { - if (hash) hash = remove_duplicate_keys(parser, hash, location); + if (hash) hash = remove_duplicate_keys(parser, hash); return NEW_HASH(hash, location); } #endif /* !RIPPER */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/