Skip to content

Commit

Permalink
Remove tupledF
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Feb 27, 2024
1 parent 5857d38 commit 2010a25
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
2 changes: 0 additions & 2 deletions project/Boilerplate.scala
Original file line number Diff line number Diff line change
Expand Up @@ -650,13 +650,11 @@ object Boilerplate {
|private[syntax] final class Function1ApplyOps[T, A0](private val f: Function1[A0, T]) extends Serializable {
| def liftN[F[_]: Functor](a0: F[A0]): F[T] = Functor[F].map(a0)(f)
| def parLiftN[F[_]: Functor](a0: F[A0]): F[T] = Functor[F].map(a0)(f)
| def tupledF[F[_]: Functor](t: F[A0]): F[T] = Functor[F].map(t)(f)
|}
|
-private[syntax] final class Function${arity}ApplyOps[T, ${`A..N`}](private val f: $function) extends Serializable {
- def liftN[F[_]: Functor: Semigroupal]($typedParams): F[T] = Semigroupal.map$arity(${`a..n`})(f)
- def parLiftN[F[_]: Parallel]($typedParams): F[T] = Parallel.parMap$arity(${`a..n`})(f)
- def tupledF[F[_]: Functor](t: F[${`(A..N)`}]): F[T] = Functor[F].map(t)(f.tupled)
-}
"""
}
Expand Down
22 changes: 0 additions & 22 deletions tests/shared/src/test/scala/cats/tests/SyntaxSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -334,28 +334,6 @@ object SyntaxSuite {
result3: F[T]
}

def testTupledF[F[_]: Apply, A, B, C, T] = {
val fa = mock[F[A]]
val fab = mock[F[(A, B)]]
val fabc = mock[F[(A, B, C)]]

val fapply1 = mock[A => T]
val fapply2 = mock[(A, B) => T]
val fapply3 = mock[(A, B, C) => T]

val result1Tupled = fapply1.tupledF(fa)

result1Tupled: F[T]

val result2Tupled = fapply2.tupledF(fab)

result2Tupled: F[T]

val result3Tupled = fapply3.tupledF(fabc)

result3Tupled: F[T]
}

def testParallelBi[M[_], F[_], T[_, _]: Bitraverse, A, B, C, D](implicit P: Parallel.Aux[M, F]): Unit = {
val tab = mock[T[A, B]]
val f = mock[A => M[C]]
Expand Down

0 comments on commit 2010a25

Please sign in to comment.