Skip to content

Commit

Permalink
Removing unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofferahl committed Sep 17, 2021
1 parent 529ca38 commit 97b9f0e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions internal/pkg/cmd/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ type Option struct {
Hidden bool
Internal bool
Default interface{}
value valuePointer
}

// Validate returns true if the option is concidered valid
Expand All @@ -67,18 +66,6 @@ func (o *Option) Validate() error {
return nil
}

type boolValue bool

func (b *boolValue) string() string { return strconv.FormatBool(bool(*b)) }

type stringValue string

func (s *stringValue) string() string { return string(*s) }

type valuePointer interface {
string() string
}

// NewOptionsSet creates a new set of options
func NewOptionsSet(name string) *OptionsSet {
return &OptionsSet{
Expand Down

0 comments on commit 97b9f0e

Please sign in to comment.