Skip to content

Commit 592a892

Browse files
committed
Remove commented out withPostSetHook actions
1 parent 485c044 commit 592a892

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

-4
Original file line numberDiff line numberDiff line change
@@ -442,13 +442,9 @@ private sealed trait YSettings:
442442
val YcompileScala2Library: Setting[Boolean] = BooleanSetting(ForkSetting, "Ycompile-scala2-library", "Used when compiling the Scala 2 standard library.")
443443
val YprofileEnabled: Setting[Boolean] = BooleanSetting(ForkSetting, "Yprofile-enabled", "Enable profiling.")
444444
val YprofileDestination: Setting[String] = StringSetting(ForkSetting, "Yprofile-destination", "file", "Where to send profiling output - specify a file, default is to the console.", "", depends = List(YprofileEnabled -> true))
445-
//.withPostSetHook( _ => YprofileEnabled.value = true )
446445
val YprofileExternalTool: Setting[List[String]] = PhasesSetting(ForkSetting, "Yprofile-external-tool", "Enable profiling for a phase using an external tool hook. Generally only useful for a single phase.", "typer", depends = List(YprofileEnabled -> true))
447-
//.withPostSetHook( _ => YprofileEnabled.value = true )
448446
val YprofileRunGcBetweenPhases: Setting[List[String]] = PhasesSetting(ForkSetting, "Yprofile-run-gc", "Run a GC between phases - this allows heap size to be accurate at the expense of more time. Specify a list of phases, or *", "_", depends = List(YprofileEnabled -> true))
449-
//.withPostSetHook( _ => YprofileEnabled.value = true )
450447
val YprofileTrace: Setting[String] = StringSetting(ForkSetting, "Yprofile-trace", "file", s"Capture trace of compilation in Chrome Trace format, requires ${YprofileEnabled.name}", "", depends = List(YprofileEnabled -> true))
451-
//.withPostSetHook( _ => YprofileEnabled.value = true )
452448

453449
val YbestEffort: Setting[Boolean] = BooleanSetting(ForkSetting, "Ybest-effort", "Enable best-effort compilation attempting to produce betasty to the META-INF/best-effort directory, regardless of errors, as part of the pickler phase.")
454450
val YwithBestEffortTasty: Setting[Boolean] = BooleanSetting(ForkSetting, "Ywith-best-effort-tasty", "Allow to compile using best-effort tasty files. If such file is used, the compiler will stop after the pickler phase.")

0 commit comments

Comments
 (0)