diff --git a/internal/tsuru/client.go b/internal/tsuru/client.go index 2d67c20..dc4507a 100644 --- a/internal/tsuru/client.go +++ b/internal/tsuru/client.go @@ -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 diff --git a/tasks_test.go b/tasks_test.go index d7eba6f..7e7c62a 100644 --- a/tasks_test.go +++ b/tasks_test.go @@ -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{{