summaryrefslogtreecommitdiffstats
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
commitc118625b85c85d844b2b42797e676cfc6972f486 (patch)
tree2a4c067e0738370e9d12c53a417def4ce36fccc8 /enumerator.c
parent4a2323ed7d1526f5e28d140b199a99c272a2320a (diff)
downloadruby-c118625b85c85d844b2b42797e676cfc6972f486.tar.gz
ruby-c118625b85c85d844b2b42797e676cfc6972f486.tar.xz
ruby-c118625b85c85d844b2b42797e676cfc6972f486.zip
* 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: http://svn.ruby-lang.org/repos/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 5ce861d9b..487ce51bb 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 */