summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/transform/patmat/MatchTranslation.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/patmat/MatchTranslation.scala')
-rw-r--r--src/compiler/scala/tools/nsc/transform/patmat/MatchTranslation.scala12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/patmat/MatchTranslation.scala b/src/compiler/scala/tools/nsc/transform/patmat/MatchTranslation.scala
index ab19660da5..bb20c96809 100644
--- a/src/compiler/scala/tools/nsc/transform/patmat/MatchTranslation.scala
+++ b/src/compiler/scala/tools/nsc/transform/patmat/MatchTranslation.scala
@@ -53,10 +53,6 @@ trait MatchTranslation {
case TypeBound(tpe) => tpe
case tree => tree.tpe
}
- def repeatedType = unbound match {
- case Star(tpt) => tpt.tpe
- case _ => NoType
- }
def glbWith(other: Type) = glb(tpe :: other :: Nil).normalize
object SymbolAndTypeBound {
@@ -420,7 +416,6 @@ trait MatchTranslation {
)
private def rawGet = typeOfMemberNamedGetOrSelf(resultType)
- private def emptySub = rawSubPatTypes.isEmpty
private def rawInit = rawSubPatTypes dropRight 1
protected def sequenceType = typeOfLastSelectorOrSelf(rawGet)
protected def elementType = elementTypeOfLastSelectorOrSelf(rawGet)
@@ -651,12 +646,5 @@ trait MatchTranslation {
case _ => false
}
}
-
- object Bound {
- def unapply(t: Tree): Option[(Symbol, Tree)] = t match {
- case t@Bind(n, p) if t.hasExistingSymbol => Some((t.symbol, p)) // pos/t2429 does not satisfy these conditions
- case _ => None
- }
- }
}
}