Skip to content

Commit

Permalink
Merge pull request #377 from Shopify/remove-deadcode-rbi-rbsprinter-b…
Browse files Browse the repository at this point in the history
…are_proc_

Remove dead method `bare_proc?`
  • Loading branch information
Morriar authored Oct 31, 2024
2 parents 48e8d20 + 74f73c5 commit d2e59a2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/rbi/rbs_printer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -772,11 +772,6 @@ def parse_t_let(code)

node.arguments&.arguments&.fetch(1, nil)&.slice
end

sig { params(node: Type).returns(T::Boolean) }
def bare_proc?(node)
node.is_a?(Type::Simple) && node.name == "Proc"
end
end

class TypePrinter
Expand Down

0 comments on commit d2e59a2

Please sign in to comment.