ohler55 / oj

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

Cleanup RUBY_INTEGER_UNIFICATION #866

Closed Watson1978 closed 1 year ago

Watson1978 commented 1 year ago

RUBY_INTEGER_UNIFICATION was introduced at Ruby 2.4.0. https://github.com/ruby/ruby/blob/8c6b349805e2f17a57576b8dfad31e5681d6b0e9/doc/NEWS/NEWS-2.4.0#compatibility-issues-excluding-feature-bug-fixes-

Now, oj gem supports Ruby 2.7.0 or later. https://github.com/ohler55/oj/blob/d289f4243b0bebd0ceb01c19cc8c338aff0c54d9/oj.gemspec#L21

So, this patch will remove unnecessary code for old Ruby.

ohler55 commented 1 year ago

It seems like only yesterday that integer unification happened. Thanks you