diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-03-27 10:20:18 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-03-27 10:20:18 +0900 |
commit | 712a65a53f3c15105cd86e8ad3ee3c779050ada4 (patch) | |
tree | f1b75eb078ec8c05443b327b97ef2d3d1fc1f573 /lib/psych/visitors/yaml_tree.rb | |
parent | 5e0c3160ea0412b866e1e949890eb02e9c4c186c (diff) | |
download | psych-712a65a53f3c15105cd86e8ad3ee3c779050ada4.zip |
Fixed gabage lines
Diffstat (limited to 'lib/psych/visitors/yaml_tree.rb')
-rw-r--r-- | lib/psych/visitors/yaml_tree.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/psych/visitors/yaml_tree.rb b/lib/psych/visitors/yaml_tree.rb index 2b61f13..cae876c 100644 --- a/lib/psych/visitors/yaml_tree.rb +++ b/lib/psych/visitors/yaml_tree.rb @@ -130,27 +130,6 @@ module Psych return @emitter.alias anchor end -<<<<<<< HEAD - if target.respond_to?(:to_yaml) - begin - loc = target.method(:to_yaml).source_location.first - if loc !~ /psych\/core_ext.rb/ - unless target.respond_to?(:encode_with) - if $VERBOSE - warn "implementing to_yaml is deprecated, please implement \"encode_with\"" - end - - target.to_yaml(:nodump => true) - end - end - rescue - # public_method or source_location might be overridden, - # and it's OK to skip it since it's only to emit a warning - end - end - -======= ->>>>>>> Removed to_yaml support on YAMLTree if target.respond_to?(:encode_with) dump_coder target else |