Skip to content

Commit

Permalink
Remove deadcode for RBI::Parser::TreeBuilder::visit_singleton_class_node
Browse files Browse the repository at this point in the history
  • Loading branch information
shopify-codedb[bot] committed Feb 22, 2025
1 parent 65dd068 commit dc65eea
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions lib/rbi/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -309,24 +309,6 @@ def visit_program_node(node)
@last_node = nil
end

# @override
#: (Prism::SingletonClassNode node) -> void
def visit_singleton_class_node(node)
@last_node = node
scope = SingletonClass.new(
loc: node_loc(node),
comments: node_comments(node),
)

current_scope << scope
@scopes_stack << scope
visit(node.body)
scope.nodes.concat(current_sigs)
collect_dangling_comments(node)
@scopes_stack.pop
@last_node = nil
end

#: (Prism::CallNode node) -> void
def visit_call_node(node)
@last_node = node
Expand Down

0 comments on commit dc65eea

Please sign in to comment.