diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-01 05:20:06 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-01 05:20:06 +0000 |
| commit | 61d7065be290eb93fc8e1e560cf250c02315108e (patch) | |
| tree | 5a3506d396ab6878589a792d4719095a631a5658 /enumerator.c | |
| parent | 3ae6c60d1fe8a7dcda7e114705f71ac1112d1397 (diff) | |
| download | ruby-61d7065be290eb93fc8e1e560cf250c02315108e.tar.gz ruby-61d7065be290eb93fc8e1e560cf250c02315108e.tar.xz ruby-61d7065be290eb93fc8e1e560cf250c02315108e.zip | |
* insns.def (concatarray, splatarray): use to_a instead of
to_splat.
* insnhelper.ci (caller_setup_args): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
| -rw-r--r-- | enumerator.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/enumerator.c b/enumerator.c index ffa892ade..ea4fb9e57 100644 --- a/enumerator.c +++ b/enumerator.c @@ -365,19 +365,6 @@ enumerator_with_index(VALUE obj) enumerator_with_index_i, (VALUE)&memo); } -/* - * call-seq: - * e.to_splat => array - * - * Convert this enumerator object to an array to splat. - */ - -static VALUE -enumerator_to_splat(VALUE obj) -{ - return rb_convert_type(obj, T_ARRAY, "Array", "to_a"); -} - static VALUE next_ii(VALUE i, VALUE obj) { @@ -475,7 +462,6 @@ Init_Enumerator(void) rb_define_method(rb_cEnumerator, "initialize_copy", enumerator_init_copy, 1); rb_define_method(rb_cEnumerator, "each", enumerator_each, 0); rb_define_method(rb_cEnumerator, "with_index", enumerator_with_index, 0); - rb_define_method(rb_cEnumerator, "to_splat", enumerator_to_splat, 0); rb_define_method(rb_cEnumerator, "next", enumerator_next, 0); rb_define_method(rb_cEnumerator, "rewind", enumerator_rewind, 0); |
