Removed unused code checking if version is outdated

This commit is contained in:
RLRabinowitz 2023-08-24 10:45:43 +03:00
parent e8de2d7405
commit a2f1215126

View File

@ -30,15 +30,6 @@ type VersionOutput struct {
ProviderSelections map[string]string `json:"provider_selections"`
}
// VersionCheckInfo is the return value for the VersionCheckFunc callback
// and tells the Version command information about the latest version
// of Terraform.
type VersionCheckInfo struct {
Outdated bool
Latest string
Alerts []string
}
func (c *VersionCommand) Help() string {
helpText := `
Usage: opentf [global options] version [options]
@ -53,8 +44,6 @@ Options:
}
func (c *VersionCommand) Run(args []string) int {
var outdated bool
var latest string
var versionString bytes.Buffer
args = c.Meta.process(args)
var jsonOutput bool
@ -136,13 +125,6 @@ func (c *VersionCommand) Run(args []string) int {
c.Ui.Output(str)
}
}
if outdated {
c.Ui.Output(fmt.Sprintf(
"\nYour version of OpenTF is out of date! The latest version\n"+
"is %s. You can update by downloading from https://www.placeholderplaceholderplaceholder.io/downloads.html",
latest))
}
}
return 0