From 162a5f7755a7c6c083c96f752a5cbc4f846bb31c Mon Sep 17 00:00:00 2001 From: paltherr Date: Fri, 3 Dec 2004 14:51:33 +0000 Subject: - Removed graph methods in class Phase --- sources/scalac/Global.java | 3 +-- sources/scalac/Phase.java | 11 ----------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java index 7dccabfc60..a5f82f3979 100644 --- a/sources/scalac/Global.java +++ b/sources/scalac/Global.java @@ -394,8 +394,7 @@ public abstract class Global { currentPhase.apply(units); stop(currentPhase.descriptor.taskDescription()); if (currentPhase.descriptor.hasPrintFlag()) print(); - if (currentPhase.descriptor.hasGraphFlag()) - currentPhase.graph(this); + // if (currentPhase.descriptor.hasGraphFlag()) // !!! // if (currentPhase.descriptor.hasCheckFlag()) // !!! if (currentPhase == PHASE.PARSER.phase()) fix1(); if (currentPhase == PHASE.ANALYZER.phase()) fix2(); diff --git a/sources/scalac/Phase.java b/sources/scalac/Phase.java index 7d9c785a13..25b046743a 100644 --- a/sources/scalac/Phase.java +++ b/sources/scalac/Phase.java @@ -65,17 +65,6 @@ public abstract class Phase { /** Applies this phase to the given compilation units. */ public abstract void apply(CompilationUnit[] units); - /** Graphs all compilation units. */ - public void graph(Global global) { - for (int i = 0; i < global.units.length; i++) graph(global.units[i]); - } - - /** Graphs the result of this phase for the given compilation unit. */ - public void graph(CompilationUnit unit) { - // !!! new scala.compiler.gdl.TreePrinter().printInFile( - // !!! unit, unit.source + "-" + name() + ".gdl"); - } - /** Returns the name of this phase. */ public final String toString() { return descriptor.name(); -- cgit v1.2.3