From 339eb737ae75721ce561cc4e5b0edeec10420961 Mon Sep 17 00:00:00 2001 From: Nathaniel May Date: Sun, 21 Apr 2019 20:40:14 -0400 Subject: [PATCH] removed unused implicit classes --- src/test/scala/util/ImplicitClasses.scala | 28 ----------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/test/scala/util/ImplicitClasses.scala diff --git a/src/test/scala/util/ImplicitClasses.scala b/src/test/scala/util/ImplicitClasses.scala deleted file mode 100644 index 66e2380..0000000 --- a/src/test/scala/util/ImplicitClasses.scala +++ /dev/null @@ -1,28 +0,0 @@ -package util - -object ImplicitClasses { - - - implicit class ListSyntax[A](l: List[A]) { - def intersperse(b: List[A]): List[A] = ListSyntax.intersperse(l, b) - } - - object ListSyntax { - private def intersperse[A](a: List[A], b: List[A]): List[A] = a match { - case first :: rest => first :: intersperse(b, rest) - case _ => b - } - } - - implicit class StreamSyntax[A](s: Stream[A]) { - def intersperse(b: Stream[A]): Stream[A] = StreamSyntax.intersperse(s, b) - } - - object StreamSyntax { - private def intersperse[A](a: Stream[A], b: Stream[A]): Stream[A] = a match { - case first #:: rest => first #:: intersperse(b, rest) - case _ => b - } - } - -}