summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-30 01:06:10 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-30 01:06:10 +0000
commita68451d61015e094d804d286027ac22d443aab62 (patch)
tree2a4c067e0738370e9d12c53a417def4ce36fccc8 /enumerator.c
parentf3cbb20b2272ea5b1c9cafb16e22221aa527f952 (diff)
* enum.c (enum_butfirst): add a new method to iterates over
elements but first n. RDoc need to be updated. * enumerator.c (Init_Enumerator): remove unnecessary symbol initialization. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/enumerator.c b/enumerator.c
index 5ce861d9bb..487ce51bb9 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -22,7 +22,7 @@
* object.
*/
static VALUE rb_cEnumerator;
-static VALUE sym_each, sym_each_with_index, sym_each_slice, sym_each_cons, sym_call;
+static VALUE sym_each, sym_call;
VALUE rb_eStopIteration;
@@ -471,9 +471,6 @@ Init_Enumerator(void)
rb_eStopIteration = rb_define_class("StopIteration", rb_eIndexError);
sym_each = ID2SYM(rb_intern("each"));
- sym_each_with_index = ID2SYM(rb_intern("each_with_index"));
- sym_each_slice = ID2SYM(rb_intern("each_slice"));
- sym_each_cons = ID2SYM(rb_intern("each_cons"));
sym_call = ID2SYM(rb_intern("call"));
rb_provide("enumerator.so"); /* for backward compatibility */