summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-06-11 13:33:47 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-06-11 13:33:47 +0000
commit21606c6ec56bf11be012f391e43974132ae5646f (patch)
tree2258a25cf98166401ff369394d9bd664b18dc48f /array.c
parent6ea8b5094649cb28b5cf1ea7e1c9bed32cf5c31f (diff)
downloadruby-21606c6ec56bf11be012f391e43974132ae5646f.tar.gz
* 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
Diffstat (limited to 'array.c')
-rw-r--r--array.c27
1 files changed, 0 insertions, 27 deletions
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 <code>Array#select</code>.
- */
-
-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<argc; i++) {
- rb_ary_push(new_ary, rb_ary_aref(1, argv+i, ary));
- }
-
- return new_ary;
-}
-
VALUE
rb_ary_to_ary(obj)
VALUE obj;
@@ -3029,8 +3004,6 @@ Init_Array()
rb_define_method(rb_cArray, "empty?", rb_ary_empty_p, 0);
rb_define_method(rb_cArray, "index", rb_ary_index, 1);
rb_define_method(rb_cArray, "rindex", rb_ary_rindex, 1);
- rb_define_method(rb_cArray, "indexes", rb_ary_indexes, -1);
- rb_define_method(rb_cArray, "indices", rb_ary_indexes, -1);
rb_define_method(rb_cArray, "join", rb_ary_join_m, -1);
rb_define_method(rb_cArray, "reverse", rb_ary_reverse_m, 0);
rb_define_method(rb_cArray, "reverse!", rb_ary_reverse_bang, 0);