From 95e7af0c59267d6ab6695906eaba93c9d181ac69 Mon Sep 17 00:00:00 2001 From: Alexander Momchilov Date: Tue, 19 Dec 2023 12:26:43 -0500 Subject: [PATCH] [ruby/psych] Remove unused array https://github.com/ruby/psych/commit/b9e7b4a4a4 --- ext/psych/lib/psych/visitors/yaml_tree.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/ext/psych/lib/psych/visitors/yaml_tree.rb b/ext/psych/lib/psych/visitors/yaml_tree.rb index 1dd4094c1dab2e..eb2be46a71f289 100644 --- a/ext/psych/lib/psych/visitors/yaml_tree.rb +++ b/ext/psych/lib/psych/visitors/yaml_tree.rb @@ -17,12 +17,10 @@ class Registrar # :nodoc: def initialize @obj_to_id = {}.compare_by_identity @obj_to_node = {}.compare_by_identity - @targets = [] @counter = 0 end def register target, node - @targets << target @obj_to_node[target] = node end