From 9a74cc0a55b4f91362034576e03126067ee99273 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 2 Feb 2018 13:29:23 +0000 Subject: [PATCH] variable.c: removed old warning git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- variable.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/variable.c b/variable.c index c8fd1553f5..ca7e4988a6 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; }