summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-09 16:39:49 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-09 16:39:49 +0000
commit9d8075b99cf131e0b2522bcf82a5b47e82d3882e (patch)
tree4215356c5ede9a7dbd0c02a5fcdebece7768d51f /compile.c
parente56e8c758d8effb54144df0b61ca9d5f6b98a0cd (diff)
* 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
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c13
1 files changed, 0 insertions, 13 deletions
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);