From d9be5c2a0948622880771e3f831ce85b3bbb90a8 Mon Sep 17 00:00:00 2001 From: Cihangir Besiktas Date: Fri, 11 Aug 2017 11:33:23 +0100 Subject: [PATCH] some fixes applied to pass tests --- application.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/application.go b/application.go index c130c1f..36f5184 100644 --- a/application.go +++ b/application.go @@ -69,7 +69,6 @@ type Application struct { Executor *string `json:"executor,omitempty"` HealthChecks *[]HealthCheck `json:"healthChecks,omitempty"` ReadinessChecks *[]ReadinessCheck `json:"readinessChecks,omitempty"` - Residency *Residency `json:"residency,omitempty"` Instances *int `json:"instances,omitempty"` Mem *float64 `json:"mem,omitempty"` Tasks []*Task `json:"tasks,omitempty"` @@ -464,20 +463,6 @@ func (r *Application) EmptyReadinessChecks() *Application { return r } -// SetResidency sets the upgrade strategy. -func (r *Application) SetResidency(us Residency) *Application { - r.Residency = &us - return r -} - -// EmptyResidency explicitly empties the residency -- use this if -// you need to empty the residency of an application that already has -// the residency set (setting it to nil will keep the current value). -func (r *Application) EmptyResidency() *Application { - r.Residency = &Residency{} - return r -} - // DeploymentIDs retrieves the application deployments IDs func (r *Application) DeploymentIDs() []*DeploymentID { var deployments []*DeploymentID