diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-15 14:20:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-15 14:20:19 +0000 |
commit | fd0f36a4a8e6877ba160f405a9d10f36ee662a4a (patch) | |
tree | 27a04ea93c1c95c183c62801f850fbc6d96cdd37 /enumerator.c | |
parent | 05d8e212b131a57358ce3181c47131651580aa41 (diff) | |
download | ruby-fd0f36a4a8e6877ba160f405a9d10f36ee662a4a.tar.gz |
* enumerator.c (Init_Enumerator): use an internal directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
-rw-r--r-- | enumerator.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/enumerator.c b/enumerator.c index 46854695a3..734bd80577 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); |