[前][次][番号順一覧][スレッド一覧]

ruby-changes:36106

From: nobu <ko1@a...>
Date: Wed, 29 Oct 2014 20:41:24 +0900 (JST)
Subject: [ruby-changes:36106] nobu:r48187 (trunk): parse.y: unused member

nobu	2014-10-29 20:41:03 +0900 (Wed, 29 Oct 2014)

  New Revision: 48187

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48187

  Log:
    parse.y: unused member
    
    * parse.y (parser_params): remove unused member `cur_mid`.
      this has been taken over by `in_def` since 1.6.

  Modified files:
    trunk/ChangeLog
    trunk/parse.y
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48186)
+++ ChangeLog	(revision 48187)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Oct 29 20:41:01 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* parse.y (parser_params): remove unused member `cur_mid`.
+	  this has been taken over by `in_def` since 1.6.
+
 Wed Oct 29 14:44:27 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* load.c (rb_f_load): path name needs to be transcoded to OS path
Index: parse.y
===================================================================
--- parse.y	(revision 48186)
+++ parse.y	(revision 48187)
@@ -225,7 +225,6 @@ struct parser_params { https://github.com/ruby/ruby/blob/trunk/parse.y#L225
     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_ https://github.com/ruby/ruby/blob/trunk/parse.y#L306
 #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 https://github.com/ruby/ruby/blob/trunk/parse.y#L2977
 		    }
 		| k_def fname
 		    {
-			$<id>$ = cur_mid;
-			cur_mid = $2;
 			in_def++;
 			local_push(0);
 		    }
@@ -2998,7 +2994,6 @@ primary		: literal https://github.com/ruby/ruby/blob/trunk/parse.y#L2994
 		    %*/
 			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 * https://github.com/ruby/ruby/blob/trunk/parse.y#L10244
     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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]