Skip to content

Commit aa0d763

Browse files
committed
Cleanups
1 parent 622dfc2 commit aa0d763

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,7 +1750,7 @@ object Types {
17501750
TermRef(prefix, designator.withSig(sig))
17511751

17521752
protected def loadDenot(implicit ctx: Context): Denotation = {
1753-
val d = asMemberOf(prefix, allowPrivate = false) // allowPrivate needed?
1753+
val d = asMemberOf(prefix, allowPrivate = false)
17541754
if (d.exists || ctx.phaseId == FirstPhaseId || !lastDenotation.isInstanceOf[SymDenotation])
17551755
if (mySig != null) d.atSignature(mySig).checkUnique
17561756
else d
@@ -2026,9 +2026,6 @@ object Types {
20262026
if (Config.checkUnerased) assert(!ctx.phase.erasedTypes)
20272027

20282028
object NamedType {
2029-
def apply(prefix: Type, designator: Name)(implicit ctx: Context) = // ### needed?
2030-
if (designator.isTermName) TermRef(prefix, designator.asTermName)
2031-
else TypeRef(prefix, designator.asTypeName)
20322029
def apply(prefix: Type, designator: Designator)(implicit ctx: Context) =
20332030
if (designator.isType) TypeRef(prefix, designator.asType)
20342031
else TermRef(prefix, designator.asTerm)

compiler/src/dotty/tools/dotc/typer/TypeAssigner.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ trait TypeAssigner {
350350
else
351351
errorType(i"wrong number of arguments for $fntpe: ${fn.tpe}, expected: ${fntpe.paramInfos.length}, found: ${args.length}", tree.pos)
352352
case t =>
353-
println(i"bad tree: $fn, ${fn.uniqueId}: ${fn.tpe}")
354353
errorType(err.takesNoParamsStr(fn, ""), tree.pos)
355354
}
356355
tree.withType(ownType)

0 commit comments

Comments
 (0)