From 0abfa1c532bfa73eccdb5e8f05957c0935f5b1d9 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 2 Feb 2007 10:24:06 +0000 Subject: * parse.y (assignable_gen): no need to generate NODE_CVDECL. * compile.c (iseq_compile_each): no NODE_CVDECL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index c46951a13d..c8ddb2f80f 100644 --- a/compile.c +++ b/compile.c @@ -3347,15 +3347,14 @@ iseq_compile_each(yarv_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped) } break; } - case NODE_CVASGN: - case NODE_CVDECL:{ + case NODE_CVASGN:{ COMPILE(ret, "cvasgn val", node->nd_value); if (!poped) { ADD_INSN(ret, nd_line(node), dup); } ADD_INSN2(ret, nd_line(node), setclassvariable, ID2SYM(node->nd_vid), - nd_type(node) == NODE_CVDECL ? Qtrue : Qfalse); + Qfalse); break; } case NODE_OP_ASGN1:{ -- cgit v1.2.3