From 579493f2a94a6ea9ce3b8c5e5784202d7ee223fb Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Tue, 5 Mar 2024 11:38:50 +0100 Subject: [PATCH] Remove `Feature.globalOnlyImports` This is dead code. This logic is now handled by `Features.handleGlobalLanguageImport`. --- compiler/src/dotty/tools/dotc/config/Feature.scala | 2 -- compiler/src/dotty/tools/dotc/parsing/Parsers.scala | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/src/dotty/tools/dotc/config/Feature.scala b/compiler/src/dotty/tools/dotc/config/Feature.scala index 0ab090ac5899..7eb95badd4d0 100644 --- a/compiler/src/dotty/tools/dotc/config/Feature.scala +++ b/compiler/src/dotty/tools/dotc/config/Feature.scala @@ -33,8 +33,6 @@ object Feature: val captureChecking = experimental("captureChecking") val into = experimental("into") - val globalOnlyImports: Set[TermName] = Set(pureFunctions, captureChecking) - /** Is `feature` enabled by by a command-line setting? The enabling setting is * * -language:feature diff --git a/compiler/src/dotty/tools/dotc/parsing/Parsers.scala b/compiler/src/dotty/tools/dotc/parsing/Parsers.scala index 6c2e69658927..4ee27ba15527 100644 --- a/compiler/src/dotty/tools/dotc/parsing/Parsers.scala +++ b/compiler/src/dotty/tools/dotc/parsing/Parsers.scala @@ -30,7 +30,7 @@ import scala.annotation.tailrec import rewrites.Rewrites.{patch, overlapsPatch} import reporting.* import config.Feature -import config.Feature.{sourceVersion, migrateTo3, globalOnlyImports} +import config.Feature.{sourceVersion, migrateTo3} import config.SourceVersion.* import config.SourceVersion import dotty.tools.dotc.config.MigrationVersion