summaryrefslogtreecommitdiff
path: root/src/reflect/scala/reflect/internal/Types.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-09-27 12:28:55 -0700
committerPaul Phillips <paulp@improving.org>2013-10-02 08:59:55 -0700
commitaced32d05c97651534f468bc9a475ea5f6ae75b8 (patch)
treefda8b628ae8501a8df945aeb7f558f259c857e62 /src/reflect/scala/reflect/internal/Types.scala
parent45183d8d28ff082d9186018b707f9fecb466f14f (diff)
downloadscala-aced32d05c97651534f468bc9a475ea5f6ae75b8.tar.gz
scala-aced32d05c97651534f468bc9a475ea5f6ae75b8.tar.bz2
scala-aced32d05c97651534f468bc9a475ea5f6ae75b8.zip
Removing unused code.
Most of this was revealed via -Xlint with a flag which assumes closed world. I can't see how to check the assumes-closed-world code in without it being an ordeal. I'll leave it in a branch in case anyone wants to finish the long slog to the merge.
Diffstat (limited to 'src/reflect/scala/reflect/internal/Types.scala')
-rw-r--r--src/reflect/scala/reflect/internal/Types.scala10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/reflect/scala/reflect/internal/Types.scala b/src/reflect/scala/reflect/internal/Types.scala
index 77f4b1b70c..4367e51041 100644
--- a/src/reflect/scala/reflect/internal/Types.scala
+++ b/src/reflect/scala/reflect/internal/Types.scala
@@ -537,8 +537,6 @@ trait Types
else Nil
)
- def etaExpand: Type = this
-
/** Performs a single step of beta-reduction on types.
* Given:
*
@@ -2309,7 +2307,7 @@ trait Types
|| pre.isGround && args.forall(_.isGround)
)
- override def etaExpand: Type = {
+ def etaExpand: Type = {
// must initialise symbol, see test/files/pos/ticket0137.scala
val tpars = initializedTypeParams
if (tpars.isEmpty) this
@@ -2443,7 +2441,8 @@ trait Types
else
super.prefixString
)
- def copy(pre: Type = this.pre, sym: Symbol = this.sym, args: List[Type] = this.args) = TypeRef(pre, sym, args)
+ // Suppressing case class copy method which risks subverting our single point of creation.
+ private def copy = null
override def kind = "TypeRef"
}
@@ -4596,9 +4595,6 @@ trait Types
case _ => Depth(1)
}
- def withUncheckedVariance(tp: Type): Type =
- tp withAnnotation (AnnotationInfo marker uncheckedVarianceClass.tpe)
-
//OPT replaced with tailrecursive function to save on #closures
// was:
// var d = 0