From 408c6fe6c553276bc11ade8ea5807d2121503d80 Mon Sep 17 00:00:00 2001 From: mihaylov Date: Fri, 9 Feb 2007 14:50:54 +0000 Subject: Removed some platform-agnostic files from src/d... Removed some platform-agnostic files from src/dotnet-library --- src/dotnet-library/scala/runtime/RichBoolean.scala | 23 ------------------ src/dotnet-library/scala/runtime/RichByte.scala | 23 ------------------ src/dotnet-library/scala/runtime/RichInt.scala | 28 ---------------------- src/dotnet-library/scala/runtime/RichLong.scala | 27 --------------------- src/dotnet-library/scala/runtime/RichShort.scala | 23 ------------------ 5 files changed, 124 deletions(-) delete mode 100644 src/dotnet-library/scala/runtime/RichBoolean.scala delete mode 100644 src/dotnet-library/scala/runtime/RichByte.scala delete mode 100644 src/dotnet-library/scala/runtime/RichInt.scala delete mode 100644 src/dotnet-library/scala/runtime/RichLong.scala delete mode 100644 src/dotnet-library/scala/runtime/RichShort.scala (limited to 'src/dotnet-library') diff --git a/src/dotnet-library/scala/runtime/RichBoolean.scala b/src/dotnet-library/scala/runtime/RichBoolean.scala deleted file mode 100644 index ab47a97748..0000000000 --- a/src/dotnet-library/scala/runtime/RichBoolean.scala +++ /dev/null @@ -1,23 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - -// $Id$ - - -package scala.runtime - - -final class RichBoolean(x: Boolean) extends Proxy with Ordered[Boolean] { - - // Proxy.self - def self: Any = x - - // Ordered[Boolean].compare - def compare (y: Boolean): Int = if (x == y) 0 else if (x) 1 else -1 - -} diff --git a/src/dotnet-library/scala/runtime/RichByte.scala b/src/dotnet-library/scala/runtime/RichByte.scala deleted file mode 100644 index 5d3cca2aa3..0000000000 --- a/src/dotnet-library/scala/runtime/RichByte.scala +++ /dev/null @@ -1,23 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - -// $Id$ - - -package scala.runtime - - -final class RichByte(x: Byte) extends Proxy with Ordered[Byte] { - - // Proxy.self - def self: Any = x - - // Ordered[Byte].compare - def compare (y: Byte): Int = if (x < y) -1 else if (x > y) 1 else 0 - -} diff --git a/src/dotnet-library/scala/runtime/RichInt.scala b/src/dotnet-library/scala/runtime/RichInt.scala deleted file mode 100644 index ef6f330e71..0000000000 --- a/src/dotnet-library/scala/runtime/RichInt.scala +++ /dev/null @@ -1,28 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - -// $Id$ - -package scala.runtime - -final class RichInt(x: Int) extends Proxy with Ordered[Int] { - - // Proxy - def self: Any = x - - // Ordered[Int] - def compare (y: Int): Int = if (x < y) -1 else if (x > y) 1 else 0 - - def until(y: Int): Iterator[Int] = Iterator.range(x, y) - def to(y: Int): Iterator[Int] = Iterator.range(x, y + 1) - - def min(y: Int): Int = if (x < y) x else y - def max(y: Int): Int = if (x > y) x else y - def abs: Int = if (x < 0) -x else x - -} diff --git a/src/dotnet-library/scala/runtime/RichLong.scala b/src/dotnet-library/scala/runtime/RichLong.scala deleted file mode 100644 index 4a58b71e16..0000000000 --- a/src/dotnet-library/scala/runtime/RichLong.scala +++ /dev/null @@ -1,27 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - -// $Id$ - - -package scala.runtime - - -final class RichLong(x: Long) extends Proxy with Ordered[Long] { - - // Proxy.self - def self: Any = x - - // Ordered[Long].compare - def compare (y: Long): Int = if (x < y) -1 else if (x > y) 1 else 0 - - def min(y: Long): Long = if (x < y) x else y - def max(y: Long): Long = if (x > y) x else y - def abs: Long = if (x < 0) -x else x - -} diff --git a/src/dotnet-library/scala/runtime/RichShort.scala b/src/dotnet-library/scala/runtime/RichShort.scala deleted file mode 100644 index 4615dec610..0000000000 --- a/src/dotnet-library/scala/runtime/RichShort.scala +++ /dev/null @@ -1,23 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - -// $Id$ - - -package scala.runtime - - -final class RichShort(x: Short) extends Proxy with Ordered[Short] { - - // Proxy.self - def self: Any = x - - // Ordered[Short].compare - def compare (y: Short): Int = if (x < y) -1 else if (x > y) 1 else 0 - -} -- cgit v1.2.3