Skip to content

Commit 0c66c8b

Browse files
authored
[chore] Remove deadcode dotty.tools.dotc.config.ScalaRelease (#24579)
2 parents 7fc43a0 + 867aab5 commit 0c66c8b

File tree

5 files changed

+1
-27
lines changed

5 files changed

+1
-27
lines changed

compiler/src/dotty/tools/dotc/config/ScalaRelease.scala

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

compiler/src/dotty/tools/dotc/config/ScalaSettingsProperties.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ object ScalaSettingsProperties:
2020
val maxVersion = Math.min(jdkVersion, maxTargetVersion)
2121
(minReleaseVersion to maxVersion).toList.map(_.toString)
2222

23-
def supportedScalaReleaseVersions: List[String] =
24-
ScalaRelease.values.toList.map(_.show)
25-
2623
def supportedSourceVersions: List[String] =
2724
SourceVersion.values.diff(SourceVersion.illegalInSettings)
2825
.map(_.toString).toList

compiler/src/dotty/tools/dotc/transform/PickleQuotes.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import ast.TreeTypeMap
1515
import NameKinds.*
1616
import dotty.tools.dotc.ast.tpd
1717
import dotty.tools.dotc.ast.untpd
18-
import dotty.tools.dotc.config.ScalaRelease.*
1918

2019
import dotty.tools.dotc.core.Annotations.*
2120
import dotty.tools.dotc.core.StdNames.*

compiler/src/dotty/tools/dotc/transform/Splicing.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import dotty.tools.dotc.core.Annotations.*
2020
import dotty.tools.dotc.core.Names.*
2121
import dotty.tools.dotc.core.StdNames.*
2222
import dotty.tools.dotc.quoted.*
23-
import dotty.tools.dotc.config.ScalaRelease.*
2423
import dotty.tools.dotc.staging.StagingLevel.*
2524
import dotty.tools.dotc.staging.QuoteTypeTags
2625
import dotty.tools.dotc.staging.QuoteTypeTags.*

compiler/src/dotty/tools/dotc/typer/CrossVersionChecks.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import core.*
66
import Annotations.Annotation
77
import Symbols.*, Types.*, Contexts.*, Flags.*, Decorators.*, reporting.*
88
import util.SrcPos
9-
import config.{ScalaVersion, NoScalaVersion, Feature, ScalaRelease}
9+
import config.{ScalaVersion, NoScalaVersion, Feature}
1010
import MegaPhase.MiniPhase
1111
import scala.util.{Failure, Success}
1212
import ast.tpd

0 commit comments

Comments
 (0)