[ruby/json] Remove unparse and restore aliases.

These were deprecated 16 years ago.

https://github.com/ruby/json/commit/a88d825a91
This commit is contained in:
Jean Boussier 2025-03-26 15:23:42 +01:00 committed by Hiroshi SHIBATA
parent f4529ecbe7
commit b71ec1196e

View File

@ -357,13 +357,6 @@ module JSON
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 @@ module JSON
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 @@ module JSON
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 @@ module JSON
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