Skip to content

Commit

Permalink
Remove unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
mpppk committed Sep 21, 2019
1 parent bd99aa4 commit b95cbb1
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 545 deletions.
92 changes: 0 additions & 92 deletions cmd/sum.go

This file was deleted.

73 changes: 0 additions & 73 deletions cmd/sum_test.go

This file was deleted.

6 changes: 1 addition & 5 deletions internal/option/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,9 @@ func newCmdConfigFromRawConfig(rawConfig *CmdRawConfig) *CmdConfig {
}

type CmdRawConfig struct {
SumCmdConfig `mapstructure:",squash"`
Toggle bool
Toggle bool
}

func (c *CmdRawConfig) validate() error {
if err := c.SumCmdConfig.validate(); err != nil {
return xerrors.Errorf("invalid config parameter is given to SumCmdConfig: %w", err)
}
return nil
}
8 changes: 0 additions & 8 deletions internal/option/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ func Test_newCmdConfigFromRawConfig(t *testing.T) {
name: "Toggle property should have false if CmdRawConfig has false",
args: args{
rawConfig: &option.CmdRawConfig{
SumCmdConfig: option.SumCmdConfig{
Norm: false,
Out: "",
},
Toggle: false,
},
},
Expand All @@ -35,10 +31,6 @@ func Test_newCmdConfigFromRawConfig(t *testing.T) {
name: "Toggle property should have true if CmdRawConfig has true",
args: args{
rawConfig: &option.CmdRawConfig{
SumCmdConfig: option.SumCmdConfig{
Norm: false,
Out: "",
},
Toggle: true,
},
},
Expand Down
38 changes: 0 additions & 38 deletions internal/option/sum.go

This file was deleted.

47 changes: 0 additions & 47 deletions internal/option/sum_test.go

This file was deleted.

33 changes: 0 additions & 33 deletions pkg/sum/sum.go

This file was deleted.

Loading

0 comments on commit b95cbb1

Please sign in to comment.