diff options
author | Jean Boussier <[email protected]> | 2025-03-26 16:37:03 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-03-27 13:54:12 +0900 |
commit | 9f17a0c7cb4cef10e462fec6a80691b55144853a (patch) | |
tree | 2087cce79cbd947645bcbc68a090a52019e2e361 /ext/json | |
parent | 4dde7101c722df3e1659ab0f4bee546afba9f3a5 (diff) |
Get rid of SAFE_STATE_PROTOTYPE
It was only used by JRuby and TruffleRuby to call `SAFE_STATE_PROTOTYPE.dup`
instead of `State.new` which isn't an worthy optimization.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12994
Diffstat (limited to 'ext/json')
-rw-r--r-- | ext/json/lib/json/common.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/json/lib/json/common.rb b/ext/json/lib/json/common.rb index 0498a28b9b..b2f11afe55 100644 --- a/ext/json/lib/json/common.rb +++ b/ext/json/lib/json/common.rb @@ -70,7 +70,6 @@ module JSON end self.state = generator::State const_set :State, self.state - const_set :SAFE_STATE_PROTOTYPE, State.new # for JRuby ensure $VERBOSE = old end |