summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-03-23 10:58:19 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-03-27 10:12:18 +0900
commit2cd35187087e4594f84462c0d583c2616e93e8c1 (patch)
tree5c915f5e6c74897b7496fe6356be0a1aad73b6df /lib
parentf6e4d772ec439b47077a18920cbb4bcb7400c5f1 (diff)
downloadpsych-2cd35187087e4594f84462c0d583c2616e93e8c1.zip
Removed deprecated yaml_initialize method
Diffstat (limited to 'lib')
-rw-r--r--lib/psych/visitors/to_ruby.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/psych/visitors/to_ruby.rb b/lib/psych/visitors/to_ruby.rb
index fd1c8e6..d1318b3 100644
--- a/lib/psych/visitors/to_ruby.rb
+++ b/lib/psych/visitors/to_ruby.rb
@@ -380,11 +380,6 @@ module Psych
if o.respond_to?(:init_with)
o.init_with c
- elsif o.respond_to?(:yaml_initialize)
- if $VERBOSE
- warn "Implementing #{o.class}#yaml_initialize is deprecated, please implement \"init_with(coder)\""
- end
- o.yaml_initialize c.tag, c.map
else
h.each { |k,v| o.instance_variable_set(:"@#{k}", v) }
end