summaryrefslogtreecommitdiffstats
path: root/enumerator.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-15 14:20:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-15 14:20:19 +0000
commit01b0abbd9fc95769b923dc080ddfb43730cd1488 (patch)
tree27a04ea93c1c95c183c62801f850fbc6d96cdd37 /enumerator.c
parentcd4833033c76a0ddfac9c7b6386c886c2f90c260 (diff)
downloadruby-01b0abbd9fc95769b923dc080ddfb43730cd1488.tar.gz
ruby-01b0abbd9fc95769b923dc080ddfb43730cd1488.tar.xz
ruby-01b0abbd9fc95769b923dc080ddfb43730cd1488.zip
* enumerator.c (Init_Enumerator): use an internal directly.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/enumerator.c b/enumerator.c
index 46854695a..734bd8057 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -325,7 +325,6 @@ enumerator_initialize(argc, argv, obj)
VALUE *argv;
VALUE obj;
{
- struct enumerator *ptr = enumerator_ptr(obj);
VALUE recv, meth = sym_each;
if (argc == 0)
@@ -405,13 +404,9 @@ enumerator_with_index(obj)
void
Init_Enumerator()
{
- VALUE rb_mEnumerable;
-
rb_define_method(rb_mKernel, "to_enum", obj_to_enum, -2);
rb_define_method(rb_mKernel, "enum_for", obj_to_enum, -2);
- rb_mEnumerable = rb_path2class("Enumerable");
-
rb_define_method(rb_mEnumerable, "enum_with_index", enumerator_enum_with_index, 0);
rb_define_method(rb_mEnumerable, "each_slice", enum_each_slice, 1);
rb_define_method(rb_mEnumerable, "enum_slice", enumerator_enum_slice, 1);