Skip to content

Commit e105c2e

Browse files
committed
Remove unused AssertUtil.assert8.
The existence of that method prevents the file from compiling with Scala.js, which in turns prevents many JUnit tests to be tested in the Scala.js build.
1 parent 3522d03 commit e105c2e

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

test/junit/scala/tools/testing/AssertUtil.scala

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
package scala.tools
22
package testing
33

4-
import org.junit.Assert
5-
import Assert._
6-
import scala.reflect.ClassTag
7-
import scala.runtime.ScalaRunTime.stringOf
8-
import scala.collection.GenIterable
9-
import scala.collection.JavaConverters._
10-
import scala.collection.mutable
11-
import scala.tools.nsc.settings.ScalaVersion
12-
import scala.util.Properties.javaSpecVersion
134
import java.lang.ref._
145
import java.lang.reflect.{Field, Modifier}
156
import java.util.IdentityHashMap
@@ -123,11 +114,4 @@ object AssertUtil {
123114
body
124115
roots.foreach(assertNoRef)
125116
}
126-
127-
private[this] val version8 = ScalaVersion("8")
128-
129-
/** Assert on Java 8, but on later versions, just print if assert would fail. */
130-
def assert8(b: => Boolean, msg: => Any) =
131-
if (ScalaVersion(javaSpecVersion) == version8) assert(b, msg)
132-
else if (!b) println(s"assert not $msg")
133117
}

0 commit comments

Comments
 (0)