summaryrefslogtreecommitdiff
path: root/ext/psych/lib/psych/visitors/json_tree.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/psych/lib/psych/visitors/json_tree.rb')
-rw-r--r--ext/psych/lib/psych/visitors/json_tree.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/ext/psych/lib/psych/visitors/json_tree.rb b/ext/psych/lib/psych/visitors/json_tree.rb
index 0ec1678a39..3502cdb63c 100644
--- a/ext/psych/lib/psych/visitors/json_tree.rb
+++ b/ext/psych/lib/psych/visitors/json_tree.rb
@@ -5,25 +5,10 @@ module Psych
super
end
- def visit_NilClass o
- @emitter.scalar 'null', nil, nil, true, false, Nodes::Scalar::PLAIN
- end
-
- def visit_Integer o
- @emitter.scalar o.to_s, nil, nil, true, false, Nodes::Scalar::PLAIN
- end
-
- def visit_Float o
- return super if o.nan? || o.infinite?
- visit_Integer o
- end
-
def visit_String o
@emitter.scalar o.to_s, nil, nil, false, true, Nodes::Scalar::ANY
end
alias :visit_Symbol :visit_String
-
- private
end
end
end