Navigation Menu

Skip to content

Commit

Permalink
nuke deprecated MetricSpace and BKTree
Browse files Browse the repository at this point in the history
  • Loading branch information
larsrh committed Jul 26, 2014
1 parent 8078481 commit 5a1bd61
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 458 deletions.
201 changes: 0 additions & 201 deletions core/src/main/scala/scalaz/BKTree.scala

This file was deleted.

94 changes: 0 additions & 94 deletions core/src/main/scala/scalaz/MetricSpace.scala

This file was deleted.

1 change: 0 additions & 1 deletion core/src/main/scala/scalaz/package.scala
Expand Up @@ -22,7 +22,6 @@
* - [[scalaz.Order]] extends [[scalaz.Equal]]
* - [[scalaz.Enum]] extends [[scalaz.Order]]
*
* - [[scalaz.MetricSpace]]
* - [[scalaz.Plus]]
* - [[scalaz.PlusEmpty]] extends [[scalaz.Plus]]
* - [[scalaz.IsEmpty]] extends [[scalaz.PlusEmpty]]
Expand Down
6 changes: 0 additions & 6 deletions core/src/main/scala/scalaz/std/AnyVal.scala
Expand Up @@ -250,12 +250,6 @@ trait AnyValInstances {
override def equalIsNatural: Boolean = true
}

/** Warning: the triangle inequality will not hold if `b - a` overflows. */
@deprecated("MetricSpace is deprecated", "7.0.1")
implicit val intMetricSpace: MetricSpace[Int] = new MetricSpace[Int] {
def distance(a: Int, b: Int): Int = scala.math.abs(b - a)
}

implicit val intMultiplicationNewType: Monoid[Int @@ Multiplication] with Enum[Int @@ Multiplication] = new Monoid[Int @@ Multiplication] with Enum[Int @@ Multiplication] {
def append(f1: Int @@ Multiplication, f2: => Int @@ Multiplication) = Multiplication(Tag.unwrap(f1) * Tag.unwrap(f2))

Expand Down
31 changes: 0 additions & 31 deletions core/src/main/scala/scalaz/syntax/MetricSpaceSyntax.scala

This file was deleted.

5 changes: 1 addition & 4 deletions core/src/main/scala/scalaz/syntax/Syntax.scala
Expand Up @@ -22,9 +22,6 @@ trait Syntaxes {

object enum extends ToEnumOps

@deprecated("metricSpace is deprecated", "7.0.1")
object metricSpace extends ToMetricSpaceOps

object isEmpty extends ToIsEmptyOps

object plusEmpty extends ToPlusEmptyOps
Expand Down Expand Up @@ -161,7 +158,7 @@ trait ToDataOps

trait ToTypeClassOps
extends ToSemigroupOps with ToMonoidOps with ToEqualOps with ToLengthOps with ToShowOps
with ToOrderOps with ToEnumOps with ToMetricSpaceOps with ToPlusEmptyOps with ToEachOps with ToIndexOps
with ToOrderOps with ToEnumOps with ToPlusEmptyOps with ToEachOps with ToIndexOps
with ToFunctorOps with ToContravariantOps with ToApplyOps
with ToApplicativeOps with ToBindOps with ToMonadOps with ToComonadOps
with ToBifoldableOps with ToCozipOps
Expand Down

0 comments on commit 5a1bd61

Please sign in to comment.