summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
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 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;
}