Skip to content

Commit

Permalink
chore: Remove unused version infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Nov 9, 2023
1 parent bdca3a1 commit a73febb
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions internal/cmd/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package cmd
import (
"fmt"
"os/exec"

"github.com/coreos/go-semver/semver"
)

type cmdOutputError struct {
Expand Down Expand Up @@ -34,14 +32,6 @@ func (e *cmdOutputError) Unwrap() error {
return e.err
}

type extractVersionError struct {
output []byte
}

func (e *extractVersionError) Error() string {
return fmt.Sprintf("%s: cannot extract version", e.output)
}

type parseCmdOutputError struct {
command string
args []string
Expand Down Expand Up @@ -83,20 +73,3 @@ func (e *parseVersionError) Error() string {
func (e *parseVersionError) Unwrap() error {
return e.err
}

type unsupportedVersionError struct {
version *semver.Version
}

func (e *unsupportedVersionError) Error() string {
return fmt.Sprintf("%s: unsupported version", e.version)
}

type versionTooOldError struct {
have *semver.Version
need *semver.Version
}

func (e *versionTooOldError) Error() string {
return fmt.Sprintf("found version %s, need version %s or later", e.have, e.need)
}

0 comments on commit a73febb

Please sign in to comment.