diff options
Diffstat (limited to 'ext/psych/lib/psych.rb')
-rw-r--r-- | ext/psych/lib/psych.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ext/psych/lib/psych.rb b/ext/psych/lib/psych.rb index a582f56eb1..59f9712fcd 100644 --- a/ext/psych/lib/psych.rb +++ b/ext/psych/lib/psych.rb @@ -218,13 +218,6 @@ module Psych @domain_types[key] = [key, block] end - def self.add_ruby_type type_tag, &block - warn "#{caller[0]}: add_ruby_type is deprecated, use add_domain_type" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__)) - domain = 'ruby.yaml.org,2002' - key = ['tag', domain, type_tag].join ':' - @domain_types[key] = [key, block] - end - def self.remove_type type_tag @domain_types.delete type_tag end |