diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-29 11:41:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-29 11:41:03 +0000 |
commit | d8270efcc95002e85d3410897b86b8ec4834dd35 (patch) | |
tree | 14b836cb7e4906fc6cd5217832bcecd97f76a373 /parse.y | |
parent | ef276e959ec8a8ad0b7683176e2943058335f55c (diff) | |
download | ruby-d8270efcc95002e85d3410897b86b8ec4834dd35.tar.gz |
parse.y: unused member
* parse.y (parser_params): remove unused member `cur_mid`.
this has been taken over by `in_def` since 1.6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -225,7 +225,6 @@ struct parser_params { int parser_in_def; int parser_brace_nest; int parser_compile_for_eval; - VALUE parser_cur_mid; int parser_in_kwarg; int parser_in_defined; char *parser_tokenbuf; @@ -307,7 +306,6 @@ static int parser_yyerror(struct parser_params*, const char*); #define in_single (parser->parser_in_single) #define in_def (parser->parser_in_def) #define compile_for_eval (parser->parser_compile_for_eval) -#define cur_mid (parser->parser_cur_mid) #define in_defined (parser->parser_in_defined) #define tokenbuf (parser->parser_tokenbuf) #define tokidx (parser->parser_tokidx) @@ -2979,8 +2977,6 @@ primary : literal } | k_def fname { - $<id>$ = cur_mid; - cur_mid = $2; in_def++; local_push(0); } @@ -2998,7 +2994,6 @@ primary : literal %*/ local_pop(); in_def--; - cur_mid = $<id>3; } | k_def singleton dot_or_colon {lex_state = EXPR_FNAME;} fname { @@ -10249,7 +10244,6 @@ parser_initialize(struct parser_params *parser) parser->parser_in_defined = 0; parser->parser_in_kwarg = 0; parser->parser_compile_for_eval = 0; - parser->parser_cur_mid = 0; parser->parser_tokenbuf = NULL; parser->parser_tokidx = 0; parser->parser_toksiz = 0; |