Skip to content

Commit

Permalink
[ruby/psych] Remove unused array
Browse files Browse the repository at this point in the history
  • Loading branch information
amomchilov authored and hsbt committed Dec 25, 2023
1 parent b4cb7ea commit 95e7af0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ext/psych/lib/psych/visitors/yaml_tree.rb
Expand Up @@ -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

Expand Down

0 comments on commit 95e7af0

Please sign in to comment.