diff options
author | Paul Phillips <paulp@improving.org> | 2010-09-22 20:24:08 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-09-22 20:24:08 +0000 |
commit | a992ec2d579b65b79d61c7c2997812deb58250cd (patch) | |
tree | cfc2a9bb128935788f6e01cc36655817532e3742 /src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala | |
parent | 285d2182f1aeb113aba55be804eefa2f61ce2624 (diff) | |
download | scala-a992ec2d579b65b79d61c7c2997812deb58250cd.tar.gz scala-a992ec2d579b65b79d61c7c2997812deb58250cd.tar.bz2 scala-a992ec2d579b65b79d61c7c2997812deb58250cd.zip |
A cleanup of the inliner.
and still came out of the washing machine smiling. Already reviewed by a
certain i. dragos so no review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala b/src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala index 24e025518e..62042ce3ce 100644 --- a/src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala +++ b/src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala @@ -94,9 +94,6 @@ trait TypeKinds { self: ICodes => case _ => this eq other }) - override def equals(other: Any): Boolean = - this eq other.asInstanceOf[AnyRef] - /** Is this type a category 2 type in JVM terms? */ def isWideType: Boolean = this match { case DOUBLE | LONG => true @@ -288,11 +285,6 @@ trait TypeKinds { self: ICodes => } override def isReferenceType: Boolean = true; - - override def equals(other: Any): Boolean = other match { - case REFERENCE(cls2) => cls == cls2 - case _ => false - } } // final case class VALUE(cls: Symbol) extends TypeKind { @@ -356,12 +348,6 @@ trait TypeKinds { self: ICodes => true // TODO: platform dependent! case _ => false } - - override def equals(other: Any): Boolean = other match { - case ARRAY(elem2) => elem == elem2 - case _ => false - } - } /** A boxed value. */ @@ -393,12 +379,6 @@ trait TypeKinds { self: ICodes => case _ => false } - - override def equals(other: Any): Boolean = other match { - case BOXED(kind2) => kind == kind2 - case _ => false - } - } /** |