summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-07 09:26:29 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-07 09:26:29 +0000
commit13cbec33c1335c5e582360797dfce7601bf60206 (patch)
treee88cf34d1e19ece721133a8ad3582e8ed4727dc6 /object.c
parent075169f071dbf6e71e91d3872c02e469d2a9ff72 (diff)
* parse.y (arg): "||=" should not warn for uninitialized instance
variables. * eval.c (rb_eval): ditto. * eval.c (eval): preserve and restore ruby_cref as well. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/object.c b/object.c
index efc1874..0d5f5a7 100644
--- a/object.c
+++ b/object.c
@@ -220,17 +220,6 @@ rb_obj_is_instance_of(obj, c)
case T_CLASS:
case T_ICLASS:
break;
-
- case T_NIL:
- if (NIL_P(obj)) return Qtrue;
- return Qfalse;
-
- case T_FALSE:
- return RTEST(obj) ? Qfalse : Qtrue;
-
- case T_TRUE:
- return RTEST(obj) ? Qtrue : Qfalse;
-
default:
rb_raise(rb_eTypeError, "class or module required");
}