Remove unused pos functions

pull/1/merge
Thibault Duplessis 2012-02-25 17:11:37 +01:00
parent ffd2c6c724
commit e0fd7d1026
1 changed files with 0 additions and 4 deletions

View File

@ -20,10 +20,6 @@ sealed case class Pos private (x: Int, y: Int) extends Ordered[Pos] {
def v(n: Int): Option[Pos] = pos(x, y - n)
def >(n: Int): Option[Pos] = pos(x + n, y)
def <(n: Int): Option[Pos] = pos(x - n, y)
def -?(other: Pos) = x == other.x
def |?(other: Pos) = y == other.y
def /?(other: Pos) = abs(x - other.x) == abs(y - other.y)
def *?(other: Pos) = (this -? other) || (this |? other) || (this /? other)
def >|(stop: Pos Boolean): List[Pos] = |<>|(stop, _.right)
def |<(stop: Pos Boolean): List[Pos] = |<>|(stop, _.left)
def |<>|(stop: Pos Boolean, dir: Direction): List[Pos] = dir(this) map { p