Skip to content

Commit

Permalink
Remove deadcode for RubyLsp::Rails::Completion::on_call_node_enter
Browse files Browse the repository at this point in the history
  • Loading branch information
shopify-codedb[bot] committed Jan 17, 2025
1 parent 906212c commit 5815cb2
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/ruby_lsp/ruby_lsp_rails/completion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ def initialize(client, response_builder, node_context, dispatcher, uri)
)
end

sig { params(node: Prism::CallNode).void }
def on_call_node_enter(node)
call_node = @node_context.call_node
return unless call_node

receiver = call_node.receiver
if call_node.name == :where && receiver.is_a?(Prism::ConstantReadNode)
handle_active_record_where_completions(node: node, receiver: receiver)
end
end

private

sig { params(node: Prism::CallNode, receiver: Prism::ConstantReadNode).void }
Expand Down

0 comments on commit 5815cb2

Please sign in to comment.