From 9d8075b99cf131e0b2522bcf82a5b47e82d3882e Mon Sep 17 00:00:00 2001 From: matz Date: Sun, 9 Dec 2007 16:39:49 +0000 Subject: * parse.y (expr): redefinable not (!) operator. * parse.y (arg): ditto. * object.c (rb_obj_not): new method "!". * object.c (rb_obj_not_equal): new method "!=". * object.c (rb_obj_not_match): new method "!~". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 629a8b8040..538e811582 100644 --- a/compile.c +++ b/compile.c @@ -1796,11 +1796,6 @@ compile_branch_condition(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * cond, LABEL *then_label, LABEL *else_label) { switch (nd_type(cond)) { - case NODE_NOT: - compile_branch_condition(iseq, ret, cond->nd_body, else_label, - then_label); - break; - case NODE_AND: { LABEL *label = NEW_LABEL(nd_line(cond)); @@ -3209,14 +3204,6 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped) ADD_LABEL(ret, end_label); break; } - case NODE_NOT:{ - COMPILE(ret, "value", node->nd_body); - ADD_INSN(ret, nd_line(node), putnot); - if (poped) { - ADD_INSN(ret, nd_line(node), pop); - } - break; - } case NODE_MASGN:{ compile_massign(iseq, ret, node, poped); -- cgit v1.2.3