Skip to content

Commit 1613aac

Browse files
committed
Drop redundant statements
1 parent 9f231fb commit 1613aac

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

compiler/src/dotty/tools/dotc/cc/CheckCaptures.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,8 @@ class CheckCaptures extends Recheck, SymTransformer:
525525
case rhs @ closure(_, _, _) =>
526526
// In a curried closure `x => y => e` don't leak capabilities retained by
527527
// the second closure `y => e` into the first one. This is an approximation
528-
// of the CC rule which says that a closure contributes captures to its
529-
// environment only if a let-bound reference to the closure is used.
528+
// of the CC rule which says that a closure contributes captures to its
529+
// environment only if a let-bound reference to the closure is used.
530530
capt.println(i"boxing $rhs")
531531
rhs.putAttachment(BoxedClosure, ())
532532
case _ =>
@@ -892,7 +892,6 @@ class CheckCaptures extends Recheck, SymTransformer:
892892
}
893893

894894
if expected.isSingleton && actual.isSingleton then
895-
println(i"shot $actual $expected")
896895
actual
897896
else
898897
var actualw = actual.widenDealias

compiler/src/dotty/tools/dotc/transform/Pickler.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ class Pickler extends Phase {
173173
cls -> (unit, unpickler)
174174
}
175175
pickling.println("************* entered toplevel ***********")
176-
val rootCtx = ctx
177176
for ((cls, (unit, unpickler)) <- unpicklers) do
178177
ctx.compilationUnit.needsCaptureChecking = unit.needsCaptureChecking
179178
val unpickled = unpickler.rootTrees

0 commit comments

Comments
 (0)