ohler55 / oj

Optimized JSON
http://www.ohler.com/oj
MIT License
3.12k stars 250 forks source link

Clean up HAVE_RB_HASH_BULK_INSERT #909

Closed Watson1978 closed 6 months ago

Watson1978 commented 6 months ago

rb_hash_bulk_insert function can be used as public API since Ruby 2.7.0. https://github.com/ruby/ruby/commit/d3df725f9efeb0e6c121f9a1316abaa90956f1b8

Current Oj gem only supports Ruby 2.7.0 or later. So there is no need to check whether function exists.

ohler55 commented 6 months ago

Thanks you.