summaryrefslogtreecommitdiff
path: root/ext/psych/lib/psych/visitors/yaml_tree.rb
diff options
context:
space:
mode:
authorAlexander Momchilov <amomchilov@users.noreply.github.com>2023-12-19 12:26:43 -0500
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-12-25 21:12:49 +0900
commit95e7af0c59267d6ab6695906eaba93c9d181ac69 (patch)
tree7d5d51da3eb927d1253b64a6039a2b3a24f7ac57 /ext/psych/lib/psych/visitors/yaml_tree.rb
parentb4cb7ead30cbd571ed981d7f07898012594df250 (diff)
[ruby/psych] Remove unused array
https://github.com/ruby/psych/commit/b9e7b4a4a4
Diffstat (limited to 'ext/psych/lib/psych/visitors/yaml_tree.rb')
-rw-r--r--ext/psych/lib/psych/visitors/yaml_tree.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/psych/lib/psych/visitors/yaml_tree.rb b/ext/psych/lib/psych/visitors/yaml_tree.rb
index 1dd4094c1d..eb2be46a71 100644
--- a/ext/psych/lib/psych/visitors/yaml_tree.rb
+++ b/ext/psych/lib/psych/visitors/yaml_tree.rb
@@ -17,12 +17,10 @@ module Psych
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