aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/ast/TreeInfo.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/ast/TreeInfo.scala')
-rw-r--r--src/dotty/tools/dotc/ast/TreeInfo.scala7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/dotty/tools/dotc/ast/TreeInfo.scala b/src/dotty/tools/dotc/ast/TreeInfo.scala
index 0d3f1970f..29ff492d4 100644
--- a/src/dotty/tools/dotc/ast/TreeInfo.scala
+++ b/src/dotty/tools/dotc/ast/TreeInfo.scala
@@ -176,13 +176,6 @@ trait TreeInfo[T >: Untyped] { self: Trees.Instance[T] =>
case _ => false
}
- /** Is tpt a by-name parameter type of the form => T? */
- def isByNameParamType(tpt: Tree)(implicit ctx: Context) = tpt match {
- case tpt: TypeTree => tpt.typeOpt isRef defn.ByNameParamClass
- case AppliedTypeTree(Select(_, tpnme.BYNAME_PARAM_CLASS), _) => true
- case _ => false
- }
-
/** Is name a left-associative operator? */
def isLeftAssoc(operator: Name) = operator.nonEmpty && (operator.last != ':')