From 06a0c0a5f88132f65c79cd7e4893801c33617fd4 Mon Sep 17 00:00:00 2001 From: Ramon Quitales Date: Fri, 4 Oct 2024 15:37:49 -0700 Subject: [PATCH] Remove redundant min/max functions Go v1.21 adds built-in generic min and max functions. This removes the need to maintain our own versions for the time.Duration types. --- operator/internal/controller/pulumi/utils.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/operator/internal/controller/pulumi/utils.go b/operator/internal/controller/pulumi/utils.go index ed59aeb4..69f9b261 100644 --- a/operator/internal/controller/pulumi/utils.go +++ b/operator/internal/controller/pulumi/utils.go @@ -16,24 +16,6 @@ limitations under the License. package pulumi -import ( - "time" -) - -func min(a, b time.Duration) time.Duration { - if a < b { - return a - } - return b -} - -func max(a, b time.Duration) time.Duration { - if a > b { - return a - } - return b -} - func exactlyOneOf(these ...bool) bool { var found bool for _, b := range these {