diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-04-24 15:23:42 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-04-24 15:23:42 -0700 |
commit | c69c270f19f40e6e7e12905bfeaa03ce977b7ec2 (patch) | |
tree | 947a23eec0934464b6a084278cdd0aae5e5f7cd6 /lib | |
parent | 700a359dc7a8d33e76ffdb31050183353a5cfd4b (diff) | |
download | psych-c69c270f19f40e6e7e12905bfeaa03ce977b7ec2.zip |
removing unused code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/psych.rb | 2 | ||||
-rw-r--r-- | lib/psych/visitors/yaml_tree.rb | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/psych.rb b/lib/psych.rb index 59f9712..6c892c5 100644 --- a/lib/psych.rb +++ b/lib/psych.rb @@ -182,7 +182,7 @@ module Psych ### # 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 diff --git a/lib/psych/visitors/yaml_tree.rb b/lib/psych/visitors/yaml_tree.rb index 5e773c9..5e73ec8 100644 --- a/lib/psych/visitors/yaml_tree.rb +++ b/lib/psych/visitors/yaml_tree.rb @@ -5,7 +5,6 @@ module Psych def initialize options = {} super() - @json = options[:json] @tree = Nodes::Stream.new @stack = [] @st = {} |