diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-04 07:42:10 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-04 07:42:10 +0000 |
commit | 5b93abf50e01ac2d91a07abe46beb47f10adbab9 (patch) | |
tree | 6273ed331ac6603fb0431eb8525bdf943bbb24b1 | |
parent | 52817c3654518c55de31666848f08d7ac58f8787 (diff) |
enum.c: revert last changes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | enum.c | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -1187,27 +1187,6 @@ enum_zip(int argc, VALUE *argv, VALUE obj) return result; } -static VALUE -in_i(VALUE i, VALUE *memo) -{ - if (rb_equal(i, memo[0])) { - memo[1] = Qtrue; - rb_iter_break(); - } - return Qnil; -} - -VALUE -rb_enum_in(VALUE elem, VALUE obj) -{ - VALUE memo[2]; - - memo[0] = elem; - memo[1] = Qfalse; - rb_block_call(obj, id_each, 0, 0, in_i, (VALUE)&memo); - return memo[1]; -} - /* * The <code>Enumerable</code> mixin provides collection classes with * several traversal and searching methods, and with the ability to |