Skip to content

Commit 2075f13

Browse files
committed
Remove Message and Log
Their goal was to offer a simpler alternative to sbt's `F0`. Since `F0` got replaced by `Supplier`, they are no longer required.
1 parent d818a2c commit 2075f13

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

sbt-bridge/src/xsbt/CompilerInterface.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package xsbt
55

66
import xsbti.{ AnalysisCallback, Logger, Reporter, Severity }
77
import xsbti.compile._
8-
import Log.debug
98
import java.io.File
109

1110
import dotty.tools.dotc.core.Contexts.ContextBase
@@ -52,7 +51,7 @@ class CachedCompilerImpl(args: Array[String], output: Output) extends CachedComp
5251
run(sources.toList, changes, callback, log, delegate, progress)
5352
}
5453
private[this] def run(sources: List[File], changes: DependencyChanges, callback: AnalysisCallback, log: Logger, delegate: Reporter, compileProgress: CompileProgress): Unit = {
55-
debug(log, args.mkString("Calling Dotty compiler with arguments (CompilerInterface):\n\t", "\n\t", ""))
54+
log.debug(() => args.mkString("Calling Dotty compiler with arguments (CompilerInterface):\n\t", "\n\t", ""))
5655
val ctx = (new ContextBase).initialCtx.fresh
5756
.setSbtCallback(callback)
5857
.setReporter(new DelegatingReporter(delegate))

sbt-bridge/src/xsbt/Log.scala

Lines changed: 0 additions & 10 deletions
This file was deleted.

sbt-bridge/src/xsbt/Message.scala

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)