Skip to content

Commit

Permalink
internal/tsuru: remove unused IsEmpty function
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarnier committed Nov 30, 2018
1 parent ed371f6 commit e05275d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions internal/tsuru/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ type Hook struct {
Restart map[string]interface{} `yaml:"restart" json:"restart"`
}

func (t *TsuruYaml) IsEmpty() bool {
return len(t.Hooks.BuildHooks) == 0 && t.Processes == nil
}

type Client struct {
URL string
Token string
Expand Down
7 changes: 0 additions & 7 deletions tasks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ import (
"gopkg.in/check.v1"
)

func (s *S) TestIsEmpty(c *check.C) {
t := tsuru.TsuruYaml{}
c.Assert(t.IsEmpty(), check.Equals, true)
t.Processes = map[string]string{"web": "python something.py"}
c.Assert(t.IsEmpty(), check.Equals, false)
}

func (s *S) TestExecScript(c *check.C) {
cmds := []string{"ls", "ls"}
envs := []bind.EnvVar{{
Expand Down

0 comments on commit e05275d

Please sign in to comment.