mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove unneccesary defines in enumerator
This commit is contained in:
parent
a3f9a98c29
commit
cdc578ee00
1 changed files with 2 additions and 6 deletions
|
@ -1293,13 +1293,11 @@ yielder_compact(void *p)
|
|||
ptr->proc = rb_gc_location(ptr->proc);
|
||||
}
|
||||
|
||||
#define yielder_free RUBY_TYPED_DEFAULT_FREE
|
||||
|
||||
static const rb_data_type_t yielder_data_type = {
|
||||
"yielder",
|
||||
{
|
||||
yielder_mark,
|
||||
yielder_free,
|
||||
RUBY_TYPED_DEFAULT_FREE,
|
||||
NULL,
|
||||
yielder_compact,
|
||||
},
|
||||
|
@ -1427,13 +1425,11 @@ generator_compact(void *p)
|
|||
ptr->obj = rb_gc_location(ptr->obj);
|
||||
}
|
||||
|
||||
#define generator_free RUBY_TYPED_DEFAULT_FREE
|
||||
|
||||
static const rb_data_type_t generator_data_type = {
|
||||
"generator",
|
||||
{
|
||||
generator_mark,
|
||||
generator_free,
|
||||
RUBY_TYPED_DEFAULT_FREE,
|
||||
NULL,
|
||||
generator_compact,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue