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.
This commit is contained in:
Jean Boussier 2025-03-26 16:37:03 +01:00 committed by Hiroshi SHIBATA
parent 4dde7101c7
commit 9f17a0c7cb
Notes: git 2025-03-27 04:54:28 +00:00

View File

@ -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