Skip to content

Commit c3b11ce

Browse files
committed
Remove init method from TreeTransform
Do not lead to temptation...
1 parent 46dd4a8 commit c3b11ce

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/dotty/tools/dotc/transform/TreeTransform.scala

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ object TreeTransforms {
142142
val last = info.transformers(info.transformers.length - 1)
143143
action(ctx.withPhase(last.phase.next))
144144
}
145-
146-
/** perform context-dependant initialization */
147-
def init(implicit ctx: Context, info: TransformerInfo): Unit = {}
148145
}
149146

150147
/** A phase that defines a TreeTransform to be used in a group */
@@ -531,9 +528,7 @@ object TreeTransforms {
531528
val initialTransformations = transformations
532529
val info = new TransformerInfo(initialTransformations, new NXTransformations(initialTransformations), this)
533530
initialTransformations.zipWithIndex.foreach {
534-
case (transform, id) =>
535-
transform.idx = id
536-
transform.init(ctx, info)
531+
case (transform, id) => transform.idx = id
537532
}
538533
implicit val mutatedInfo: TransformerInfo = mutateTransformers(info, prepForUnit, info.nx.nxPrepUnit, t, 0)
539534
if (mutatedInfo eq null) t

0 commit comments

Comments
 (0)