Skip to content

Commit 740c864

Browse files
committed
remove dependency on google diffutil
1 parent 31aff29 commit 740c864

File tree

3 files changed

+1
-38
lines changed

3 files changed

+1
-38
lines changed

compiler/test/dotty/tools/dotc/semanticdb/DiffAssertions.scala

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

compiler/test/dotty/tools/dotc/semanticdb/SemanticdbTests.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import org.junit.experimental.categories.Category
1717

1818
import dotty.BootstrappedOnlyTests
1919
import dotty.tools.dotc.Main
20-
import dotty.tools.dotc.semanticdb.DiffAssertions._
2120
import dotty.tools.dotc.semanticdb.Scala3.given
2221
import dotty.tools.dotc.util.SourceFile
2322

@@ -48,10 +47,9 @@ class SemanticdbTests with
4847
val expected = new String(Files.readAllBytes(expectPath), StandardCharsets.UTF_8)
4948
val expectName = expectPath.getFileName
5049
val relExpect = rootSrc.relativize(expectPath)
51-
collectFailingDiff(expected, obtained, s"a/$relExpect", s"b/$relExpect") {
50+
if expected.trim != obtained.trim then
5251
Files.write(expectPath.resolveSibling("" + expectName + ".out"), obtained.getBytes(StandardCharsets.UTF_8))
5352
errors += expectPath
54-
}
5553
for source <- inputFiles().sorted do
5654
val filename = source.getFileName.toString
5755
val relpath = expectSrc.relativize(source)

project/Build.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,6 @@ object Build {
502502
libraryDependencies ++= Seq(
503503
"org.scala-lang.modules" % "scala-asm" % "7.0.0-scala-1", // used by the backend
504504
Dependencies.`compiler-interface`,
505-
"com.googlecode.java-diff-utils" % "diffutils" % "1.3.0", // for SemanticdbTests
506505
"org.jline" % "jline-reader" % "3.9.0", // used by the REPL
507506
"org.jline" % "jline-terminal" % "3.9.0",
508507
"org.jline" % "jline-terminal-jna" % "3.9.0" // needed for Windows

0 commit comments

Comments
 (0)