summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-29 11:41:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-29 11:41:03 +0000
commitd8270efcc95002e85d3410897b86b8ec4834dd35 (patch)
tree14b836cb7e4906fc6cd5217832bcecd97f76a373 /parse.y
parentef276e959ec8a8ad0b7683176e2943058335f55c (diff)
downloadruby-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.y6
1 files changed, 0 insertions, 6 deletions
diff --git a/parse.y b/parse.y
index e4f0d2fe1b..3d26a5e355 100644
--- a/parse.y
+++ b/parse.y
@@ -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;