From 13444c08a45740b17ec95260daacc6f9a9615faa Mon Sep 17 00:00:00 2001 From: Preetha Appan Date: Tue, 23 Jan 2018 15:17:08 -0600 Subject: [PATCH] Remove unused method --- api/tasks.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/api/tasks.go b/api/tasks.go index 08600f412..95a01eb72 100644 --- a/api/tasks.go +++ b/api/tasks.go @@ -106,21 +106,6 @@ func (r *ReschedulePolicy) Copy() *ReschedulePolicy { return nrp } -func (r *ReschedulePolicy) Empty() bool { - if r == nil { - return true - } - - if r.Attempts != nil && *r.Attempts != 0 { - return false - } - - if r.Interval != nil && *r.Interval != 0 { - return false - } - return true -} - // CheckRestart describes if and when a task should be restarted based on // failing health checks. type CheckRestart struct {