Skip to content

Commit 5186b62

Browse files
committed
Remove unused local + Context
1 parent 2babbc4 commit 5186b62

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/src/dotty/tools/dotc/semanticdb/ExtractSemanticDB.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ class ExtractSemanticDB private (phaseMode: ExtractSemanticDB.PhaseMode) extends
7171
if (appendDiagnostics)
7272
val warnings = ctx.reporter.allWarnings.groupBy(w => w.pos.source)
7373
units.asJava.parallelStream().forEach { unit =>
74-
val unitCtx = ctx.fresh.setCompilationUnit(unit).withRootImports
7574
warnings.get(unit.source).foreach { ws =>
7675
ExtractSemanticDB.appendDiagnostics(unit.source, ws.map(_.toSemanticDiagnostic))
7776
}
@@ -191,7 +190,7 @@ object ExtractSemanticDB:
191190
private def relPath(source: SourceFile)(using ctx: Context) =
192191
SourceFile.relativePath(source, ctx.settings.sourceroot.value)
193192

194-
private def semanticdbPath(source: SourceFile)(using ctx: Context) =
193+
private def semanticdbPath(source: SourceFile)(using Context) =
195194
absolutePath(semanticdbTarget.getOrElse(outputDirectory.jpath))
196195
.resolve("META-INF")
197196
.resolve("semanticdb")

0 commit comments

Comments
 (0)