Drop deprecated write-sbt-version & notify-users-about-shell

Introduced in https://github.com/sbt/sbt/pull/4169, these commands
aren't "user-facing" and are quite new. So no need to keep the old kebab
syntax.
This commit is contained in:
Dale Wijnand 2018-05-21 17:24:38 +01:00
parent ee1add6f4f
commit ab35c21c98
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
1 changed files with 0 additions and 16 deletions

View File

@ -197,9 +197,7 @@ object BuiltinCommands {
plugin,
plugins,
writeSbtVersion,
oldWriteSbtVersion,
notifyUsersAboutShell,
oldNotifyUsersAboutShell,
shell,
startServer,
eval,
@ -856,18 +854,11 @@ object BuiltinCommands {
writeSbtVersionUnconditionally(state)
private def WriteSbtVersion = "writeSbtVersion"
private def OldWriteSbtVersion = "write-sbt-version"
private def writeSbtVersion: Command =
Command.command(WriteSbtVersion) { state =>
writeSbtVersion(state); state
}
@deprecated("Use `writeSbtVersion` instead", "1.2.0")
private def oldWriteSbtVersion: Command =
Command.command(OldWriteSbtVersion) { state =>
state.log.warn(deprecationWarningText(OldWriteSbtVersion, WriteSbtVersion))
writeSbtVersion(state); state
}
private def intendsToInvokeCompile(state: State) =
state.remainingCommands exists (_.commandLine == Keys.compile.key.label)
@ -879,16 +870,9 @@ object BuiltinCommands {
}
private def NotifyUsersAboutShell = "notifyUsersAboutShell"
private def OldNotifyUsersAboutShell = "notify-users-about-shell"
private def notifyUsersAboutShell: Command =
Command.command(NotifyUsersAboutShell) { state =>
notifyUsersAboutShell(state); state
}
@deprecated("Use `notifyUsersAboutShell` instead", "1.2.0")
private def oldNotifyUsersAboutShell: Command =
Command.command(OldNotifyUsersAboutShell) { state =>
state.log.warn(deprecationWarningText(OldNotifyUsersAboutShell, NotifyUsersAboutShell))
notifyUsersAboutShell(state); state
}
}