Revert "Force recycle intermediate collection in Hash#transform_keys! [Bug #17735]"

This reverts commit 522d4cd32f7727886f4fcbc28ed29c08d361ee20.
This commit is contained in:
Kenichi Kamiya 2021-03-31 16:44:09 +09:00 committed by Koichi Sasada
parent 881136d2ff
commit bb84c75001
Notes: git 2021-09-14 14:54:03 +09:00

1
hash.c
View File

@ -3290,7 +3290,6 @@ rb_hash_transform_keys_bang(int argc, VALUE *argv, VALUE hash)
}
rb_ary_clear(pairs);
rb_hash_clear(new_keys);
rb_gc_force_recycle(new_keys);
}
return hash;
}