diff --git a/main/src/main/scala/sbt/Main.scala b/main/src/main/scala/sbt/Main.scala index b7c61ccb7..b29cca948 100644 --- a/main/src/main/scala/sbt/Main.scala +++ b/main/src/main/scala/sbt/Main.scala @@ -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 - } }