summaryrefslogtreecommitdiff
path: root/src/library/scala/Function1.scala
diff options
context:
space:
mode:
authorAntonio Cunei <antonio.cunei@epfl.ch>2009-11-09 20:34:09 +0000
committerAntonio Cunei <antonio.cunei@epfl.ch>2009-11-09 20:34:09 +0000
commit29d431ce89db67e079943eeaff322c60410cd713 (patch)
tree5a50d5cf201fc852af16b5edf59b9c7ddf7b2c8c /src/library/scala/Function1.scala
parentcedd41ba4a14f7f1595057edfeca5437ef674bc3 (diff)
downloadscala-29d431ce89db67e079943eeaff322c60410cd713.tar.gz
scala-29d431ce89db67e079943eeaff322c60410cd713.tar.bz2
scala-29d431ce89db67e079943eeaff322c60410cd713.zip
Reverted r19466, as the decision is now that
isDefinedAt should /not/ be in Function1
Diffstat (limited to 'src/library/scala/Function1.scala')
-rw-r--r--src/library/scala/Function1.scala6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/library/scala/Function1.scala b/src/library/scala/Function1.scala
index 80fe7ad1b6..7cfd32304e 100644
--- a/src/library/scala/Function1.scala
+++ b/src/library/scala/Function1.scala
@@ -47,10 +47,4 @@ trait Function1[-T1, +R] extends AnyRef { self =>
*/
def andThen[A](g: R => A): T1 => A = { x => g(apply(x)) }
- /** Checks if a value is contained in the functions domain.
- *
- * @param x the value to test
- * @return true, iff <code>x</code> is in the domain of this function.
- */
- def isDefinedAt(x: T1): Boolean = true
}