Skip to content

Commit

Permalink
Remove redundant cases with UnApply
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukagami committed May 7, 2024
1 parent 3d422cd commit bd3ee30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ class Completions(
false
case (_: (Import | Export)) :: _ => false
case _ :: (_: (Import | Export)) :: _ => false
// UnApply has patterns included in MatchCaseCompletions
case _ :: (_: UnApply) :: _ => false
case _ => true

private lazy val isNew: Boolean =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,6 @@ class CompletionSuite extends BaseCompletionSuite:
|}
|""".stripMargin,
"""|Some(value) scala
|Some[A](value: A): Some[A]
|Some scala
|""".stripMargin
)
Expand All @@ -653,7 +652,6 @@ class CompletionSuite extends BaseCompletionSuite:
|}
|""".stripMargin,
"""|Some(value) scala
|Some[A](value: A): Some[A]
|Some scala
|""".stripMargin
)
Expand All @@ -664,7 +662,6 @@ class CompletionSuite extends BaseCompletionSuite:
|}
|""".stripMargin,
"""|Some(value) scala
|Some[A](value: A): Some[A]
|Some scala
|""".stripMargin
)
Expand All @@ -676,7 +673,6 @@ class CompletionSuite extends BaseCompletionSuite:
| case Some(Test.Neste@@)
|""".stripMargin,
"""|NestedClass(x) test.Test
|NestedClass(x: Int): NestedClass
|NestedClass test.Test
|""".stripMargin
)
Expand All @@ -690,7 +686,6 @@ class CompletionSuite extends BaseCompletionSuite:
|""".stripMargin,
"""|Some(value) scala
|Some scala
|Some[A](value: A): Some[A]
|Some scala
|""".stripMargin
)
Expand Down

0 comments on commit bd3ee30

Please sign in to comment.