From 303b994d8f014b16db32906afee58c8592d428b5 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 22 Aug 2009 04:52:09 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@24625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/yaml.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib') diff --git a/lib/yaml.rb b/lib/yaml.rb index 0c95b7e82..d84967086 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 -- cgit