From 2010a2576fb2e63891cfde28ca9d05a9fa622744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Koz=C5=82owski?= Date: Tue, 27 Feb 2024 12:25:48 +0100 Subject: [PATCH] Remove tupledF --- project/Boilerplate.scala | 2 -- .../test/scala/cats/tests/SyntaxSuite.scala | 22 ------------------- 2 files changed, 24 deletions(-) diff --git a/project/Boilerplate.scala b/project/Boilerplate.scala index cc777af3cd..2f95f75a16 100644 --- a/project/Boilerplate.scala +++ b/project/Boilerplate.scala @@ -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) -} """ } diff --git a/tests/shared/src/test/scala/cats/tests/SyntaxSuite.scala b/tests/shared/src/test/scala/cats/tests/SyntaxSuite.scala index 5a4d405015..2f8e82e4bd 100644 --- a/tests/shared/src/test/scala/cats/tests/SyntaxSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/SyntaxSuite.scala @@ -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]]