summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-03-26 16:37:03 +0100
committerHiroshi SHIBATA <[email protected]>2025-03-27 13:54:12 +0900
commit9f17a0c7cb4cef10e462fec6a80691b55144853a (patch)
tree2087cce79cbd947645bcbc68a090a52019e2e361 /ext/json
parent4dde7101c722df3e1659ab0f4bee546afba9f3a5 (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.rb1
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