ruby-changes:15575
From: tenderlove <ko1@a...>
Date: Sun, 25 Apr 2010 07:23:47 +0900 (JST)
Subject: [ruby-changes:15575] Ruby:r27481 (trunk): * ext/psych/lib/psych.rb: removing unused code
tenderlove 2010-04-25 07:23:37 +0900 (Sun, 25 Apr 2010) New Revision: 27481 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27481 Log: * ext/psych/lib/psych.rb: removing unused code * ext/psych/lib/psych/visitors/yaml_tree.rb: removing unused code Modified files: trunk/ext/psych/lib/psych/visitors/yaml_tree.rb trunk/ext/psych/lib/psych.rb Index: ext/psych/lib/psych/visitors/yaml_tree.rb =================================================================== --- ext/psych/lib/psych/visitors/yaml_tree.rb (revision 27480) +++ ext/psych/lib/psych/visitors/yaml_tree.rb (revision 27481) @@ -5,7 +5,6 @@ def initialize options = {} super() - @json = options[:json] @tree = Nodes::Stream.new @stack = [] @st = {} Index: ext/psych/lib/psych.rb =================================================================== --- ext/psych/lib/psych.rb (revision 27480) +++ ext/psych/lib/psych.rb (revision 27481) @@ -182,7 +182,7 @@ ### # Dump Ruby object +o+ to a JSON string. def self.to_json o - visitor = Psych::Visitors::JSONTree.new(:json => true) + visitor = Psych::Visitors::JSONTree.new visitor << o visitor.tree.to_yaml end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/