diff --git a/CHANGES.md b/CHANGES.md index cd11229cc..159c4f00f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,10 @@ * Deprecate `JSON.load_default_options`. * Deprecate `JSON.unsafe_load_default_options`. * Deprecate `JSON.dump_default_options`. +* Remove deprecated `JSON.restore` method. +* Remove deprecated `JSON.unparse` method. +* Remove deprecated `JSON.fast_unparse` method. +* Remove deprecated `JSON.pretty_unparse` method. ### 2025-03-12 (2.10.2) diff --git a/lib/json/common.rb b/lib/json/common.rb index 800056c49..af130dc00 100644 --- a/lib/json/common.rb +++ b/lib/json/common.rb @@ -357,13 +357,6 @@ def generate(obj, opts = nil) end end - # :stopdoc: - # I want to deprecate these later, so I'll first be silent about them, and - # later delete them. - alias unparse generate - module_function :unparse - # :startdoc: - # :call-seq: # JSON.fast_generate(obj, opts) -> new_string # @@ -386,12 +379,6 @@ def fast_generate(obj, opts = nil) state.generate(obj) end - # :stopdoc: - # I want to deprecate these later, so I'll first be silent about them, and later delete them. - alias fast_unparse fast_generate - module_function :fast_unparse - # :startdoc: - # :call-seq: # JSON.pretty_generate(obj, opts = nil) -> new_string # @@ -441,12 +428,6 @@ def pretty_generate(obj, opts = nil) state.generate(obj) end - # :stopdoc: - # I want to deprecate these later, so I'll first be silent about them, and later delete them. - alias pretty_unparse pretty_generate - module_function :pretty_unparse - # :startdoc: - # Sets or returns default options for the JSON.unsafe_load method. # Initially: # opts = JSON.load_default_options @@ -799,9 +780,6 @@ def recurse_proc(result, &proc) # :nodoc: end end - alias restore load - module_function :restore - # Sets or returns the default options for the JSON.dump method. # Initially: # opts = JSON.dump_default_options