From fd78c2193e7032389a2a3ff9154654fa231ac8f0 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 27 Jun 2007 16:23:49 +0000 Subject: [PATCH] * include/ruby/node.h, parse.y, gc.c, iseq.c: remove NODE_CREF. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ gc.c | 1 - include/ruby/node.h | 2 -- iseq.c | 2 -- parse.y | 1 - 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index cfad20aaf5..a5f9dfdef5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Jun 28 01:22:15 2007 Koichi Sasada + + * include/ruby/node.h, parse.y, gc.c, iseq.c: remove NODE_CREF. + Thu Jun 28 01:19:43 2007 Koichi Sasada * compile.c (iseq_compile_each): fix popped backref and others. diff --git a/gc.c b/gc.c index 4360a535f2..de3f910d64 100644 --- a/gc.c +++ b/gc.c @@ -848,7 +848,6 @@ gc_mark_children(VALUE ptr, int lev) case NODE_IF: /* 1,2,3 */ case NODE_FOR: case NODE_ITER: - case NODE_CREF: case NODE_WHEN: case NODE_MASGN: case NODE_RESCUE: diff --git a/include/ruby/node.h b/include/ruby/node.h index e5920c5247..6842367058 100644 --- a/include/ruby/node.h +++ b/include/ruby/node.h @@ -109,7 +109,6 @@ enum node_type { NODE_SCLASS, NODE_COLON2, NODE_COLON3, - NODE_CREF, NODE_DOT2, NODE_DOT3, NODE_FLIP2, @@ -338,7 +337,6 @@ typedef struct RNode { #define NEW_MODULE(n,b) NEW_NODE(NODE_MODULE,n,NEW_SCOPE(0,b),0) #define NEW_COLON2(c,i) NEW_NODE(NODE_COLON2,c,i,0) #define NEW_COLON3(i) NEW_NODE(NODE_COLON3,0,i,0) -#define NEW_CREF(c) (NEW_NODE(NODE_CREF,0,0,c)) #define NEW_DOT2(b,e) NEW_NODE(NODE_DOT2,b,e,0) #define NEW_DOT3(b,e) NEW_NODE(NODE_DOT3,b,e,0) #define NEW_ATTRSET(a) NEW_NODE(NODE_ATTRSET,a,0,0) diff --git a/iseq.c b/iseq.c index 844a21e8d6..adcb0e2ec6 100644 --- a/iseq.c +++ b/iseq.c @@ -1005,8 +1005,6 @@ end return "NODE_COLON2"; case NODE_COLON3: return "NODE_COLON3"; - case NODE_CREF: - return "NODE_CREF"; case NODE_DOT2: return "NODE_DOT2"; case NODE_DOT3: diff --git a/parse.y b/parse.y index be3a93d9f7..2b880f7bdd 100644 --- a/parse.y +++ b/parse.y @@ -7552,7 +7552,6 @@ void_expr_gen(struct parser_params *parser, NODE *node) useless = "a variable"; break; case NODE_CONST: - case NODE_CREF: useless = "a constant"; break; case NODE_LIT: