From b71ec1196e6e50e47a96964f79b967914858e5e6 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Wed, 26 Mar 2025 15:23:42 +0100 Subject: [PATCH] [ruby/json] Remove `unparse` and `restore` aliases. These were deprecated 16 years ago. https://github.com/ruby/json/commit/a88d825a91 --- ext/json/lib/json/common.rb | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/ext/json/lib/json/common.rb b/ext/json/lib/json/common.rb index 800056c49c..af130dc006 100644 --- a/ext/json/lib/json/common.rb +++ b/ext/json/lib/json/common.rb @@ -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