From fca45036e17cab201d50bdadbf630da8bea38034 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 4 Nov 2003 09:13:57 +0000 Subject: * io.c (read_all): fptr->f may be NULL, if IO is closed in the signal handler. * io.c (io_read): ditto. * string.c (get_pat): remove 1.8.0 warning code. * string.c (rb_str_match): extend warning until 1.8.2. * string.c (rb_str_match2): ditto. * class.c (class_instance_method_list): remove 1.8.0 warnings. method_list now recurs. [ruby-dev:21816] * class.c (rb_obj_singleton_methods): ditto. * array.c (rb_ary_select): remove select with block. [ruby-dev:21824] * hash.c (rb_hash_select): ditto. * hash.c (env_select): ditto. * re.c (match_select): ditto. * struct.c (rb_struct_select): ditto. * process.c (check_uid_switch): remove duplicated error messages. * process.c (check_gid_switch): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- struct.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'struct.c') diff --git a/struct.c b/struct.c index 474b267cf..73a7f5aee 100644 --- a/struct.c +++ b/struct.c @@ -544,10 +544,6 @@ rb_struct_select(argc, argv, s) VALUE result; long i; - if (!rb_block_given_p()) { - rb_warn("Struct#select(index..) is deprecated; use Struct#values_at"); - return rb_struct_values_at(argc, argv, s); - } if (argc > 0) { rb_raise(rb_eArgError, "wrong number arguments(%d for 0)", argc); } -- cgit