Skip to content

Commit

Permalink
Merge pull request #665 from amomchilov/remove-unused-array
Browse files Browse the repository at this point in the history
Remove unused array
  • Loading branch information
tenderlove authored Dec 19, 2023
2 parents a9ab74d + 6905a21 commit 52b4780
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/psych/visitors/yaml_tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@ 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

def key? target
@obj_to_node.key? target
rescue NoMethodError
false
end

def id_for target
Expand Down

0 comments on commit 52b4780

Please sign in to comment.