summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-02 13:29:23 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-02 13:29:23 (GMT)
commit9a74cc0a55b4f91362034576e03126067ee99273 (patch)
treee8257706920bd42e204dabf1ea7f7db6a6f617ed /variable.c
parent59f502295fb48b6a7ef6c2f9a36cb7d1efeabb18 (diff)
variable.c: removed old warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/variable.c b/variable.c
index c8fd155..ca7e498 100644
--- a/variable.c
+++ b/variable.c
@@ -2260,12 +2260,7 @@ rb_const_search(VALUE klass, ID id, int exclude, int recurse, int visibility)
continue;
}
if (exclude && tmp == rb_cObject && klass != rb_cObject) {
-#if 0
- rb_warn("toplevel constant %"PRIsVALUE" referenced by %"PRIsVALUE"::%"PRIsVALUE"",
- QUOTE_ID(id), rb_class_name(klass), QUOTE_ID(id));
-#else
return Qundef;
-#endif
}
return value;
}