aboutsummaryrefslogtreecommitdiffstats
path: root/lib/yaml.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-22 04:52:09 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-22 04:52:09 +0000
commitdfc3fccef31ace6f26ac96388a441b668abf092d (patch)
tree1cde2518f895575e44fb57bc50762db38df1cb07 /lib/yaml.rb
parent0570b9969bf2e43c96346471116f5eb0a4806c88 (diff)
downloadruby-dfc3fccef31ace6f26ac96388a441b668abf092d.tar.gz
* ext/syck/rubyext.c (id_hash_new): new function to create a hash
which key is compared by object id. (syck_parser_load): use id_hash_new for bonus->data. (syck_parser_load_documents): ditto. (syck_emitter_reset): ditto. * lib/yaml.rb (YAML.quick_emit): give the object itself to eimitter. don't use object_id and hash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml.rb')
-rw-r--r--lib/yaml.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/yaml.rb b/lib/yaml.rb
index 0c95b7e82c..d84967086a 100644
--- a/lib/yaml.rb
+++ b/lib/yaml.rb
@@ -384,10 +384,6 @@ module YAML
else
emitter.reset( opts )
end
- oid =
- case oid when Fixnum, NilClass; oid
- else oid = "#{oid.object_id}-#{oid.hash}"
- end
out.emit( oid, &e )
end