From 21606c6ec56bf11be012f391e43974132ae5646f Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 11 Jun 2004 13:33:47 +0000 Subject: * array.c: remove #indexes, #indices. * hash.c: ditto. * ext/dbm/dbm.c: remove #indexes, #indices, "values_at" warning from #select. * ext/gdbm/gdbm.c: ditto. * ext/sdbm/init.c: ditto. * ext/dbm/dbm.c (Init_dbm): set VERSION constant as "unknown" when DB_VERSION_STRING is not available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'array.c') diff --git a/array.c b/array.c index 53c50d4bbb..9ba53bc548 100644 --- a/array.c +++ b/array.c @@ -951,31 +951,6 @@ rb_ary_rindex(ary, val) return Qnil; } -/* - * call-seq: - * array.indexes( i1, i2, ... iN ) => an_array - * array.indices( i1, i2, ... iN ) => an_array - * - * Deprecated; use Array#select. - */ - -static VALUE -rb_ary_indexes(argc, argv, ary) - int argc; - VALUE *argv; - VALUE ary; -{ - VALUE new_ary; - long i; - - new_ary = rb_ary_new2(argc); - for (i=0; i