summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c5
1 files changed, 0 insertions, 5 deletions
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);
}