summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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