From c0cdff2c0fe1fdf841e673b0dcd14b43c9da3ac2 Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 10 Feb 2012 21:32:02 +0000 Subject: Revert r34538. * backport 33935,33936,33987 (fix private constant) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_method.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'vm_method.c') diff --git a/vm_method.c b/vm_method.c index 086046aa0b..239b3887cb 100644 --- a/vm_method.c +++ b/vm_method.c @@ -961,11 +961,6 @@ set_method_visibility(VALUE self, int argc, VALUE *argv, rb_method_flag_t ex) { int i; secure_visibility(self); - - if (argc == 0) { - rb_warning("%s with no argument is just ignored", rb_id2name(rb_frame_callee())); - } - for (i = 0; i < argc; i++) { rb_export_method(self, rb_to_id(argv[i]), ex); } -- cgit v1.2.3