Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dead method: Spoom::Model::ReferencesVisitor::visit_call_node #674

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove deadcode for Spoom::Model::ReferencesVisitor::visit_call_node
  • Loading branch information
shopify-codedb[bot] committed Mar 4, 2025
commit 925fc6a635e552e008b55924017d4a2722b5a09a
18 changes: 0 additions & 18 deletions lib/spoom/model/references_visitor.rb
Original file line number Diff line number Diff line change
@@ -70,24 +70,6 @@ def visit_call_or_write_node(node)
visit(node.value)
end

# @override
#: (Prism::CallNode node) -> void
def visit_call_node(node)
visit(node.receiver)

name = node.name.to_s
reference_method(name, node)

case name
when "<", ">", "<=", ">="
# For comparison operators, we also reference the `<=>` method
reference_method("<=>", node)
end

visit(node.arguments)
visit(node.block)
end

# @override
#: (Prism::ClassNode node) -> void
def visit_class_node(node)
Loading
Oops, something went wrong.