Skip to content

Commit 7703423

Browse files
committed
Remove unused flags
1 parent e8513e1 commit 7703423

File tree

3 files changed

+14
-174
lines changed

3 files changed

+14
-174
lines changed

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

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,15 @@ object CompilerCommand extends DotClass {
9393

9494
def shouldStopWithInfo = {
9595
import settings._
96-
Set(help, Xhelp, Yhelp, showPlugins, showPhases) exists (_.value)
96+
Set(help, Xhelp, Yhelp) exists (_.value)
9797
}
9898

9999
def infoMessage: String = {
100100
import settings._
101-
if (help.value) usageMessage
102-
else if (Xhelp.value) xusageMessage
103-
else if (Yhelp.value) yusageMessage
104-
// else if (showPlugins.value) global.pluginDescriptions
105-
// else if (showPhases.value) global.phaseDescriptions + (
106-
// if (debug.value) "\n" + global.phaseFlagDescriptions else ""
107-
// )
108-
else ""
101+
if (help.value) usageMessage
102+
else if (Xhelp.value) xusageMessage
103+
else if (Yhelp.value) yusageMessage
104+
else ""
109105
}
110106

111107
if (summary.errors.nonEmpty) {

0 commit comments

Comments
 (0)