Skip to content

Commit 4f90466

Browse files
committed
remove redundant cases
1 parent c9e65a7 commit 4f90466

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

compiler/src/dotty/tools/dotc/util/Signatures.scala

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ object Signatures {
5050
def callInfo(path: List[tpd.Tree], span: Span)(using Context): (Int, Int, List[SingleDenotation]) =
5151
path match {
5252
case UnApply(fun, _, patterns) :: _ => callInfo(span, patterns, fun, Signatures.countParams(fun))
53-
case Apply(fun, params) :: Apply(enclosingFun, enclosingParams) :: _ =>
54-
if !fun.span.contains(span) then
55-
callInfo(span, params, fun, Signatures.countParams(fun))
56-
else
57-
callInfo(span, enclosingParams, enclosingFun, Signatures.countParams(enclosingFun))
5853
case Apply(fun, params) :: _ => callInfo(span, params, fun, Signatures.countParams(fun))
5954
case _ =>
6055
(0, 0, Nil)

0 commit comments

Comments
 (0)