From e49a8d915bcd414448b789cf8fa8a64a31f12a45 Mon Sep 17 00:00:00 2001 From: Laure-di Date: Tue, 4 Feb 2025 17:23:47 +0100 Subject: [PATCH] fix(apple-silicon): remove waitForPossibleDeletion --- api/applesilicon/v1alpha1/apple_silicon_utils.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/api/applesilicon/v1alpha1/apple_silicon_utils.go b/api/applesilicon/v1alpha1/apple_silicon_utils.go index 32566b973..527361f03 100644 --- a/api/applesilicon/v1alpha1/apple_silicon_utils.go +++ b/api/applesilicon/v1alpha1/apple_silicon_utils.go @@ -60,22 +60,6 @@ func (s *API) WaitForServer(req *WaitForServerRequest, opts ...scw.RequestOption return server.(*Server), nil } -func (s *API) WaitForPossibleDeletion(req *WaitForServerRequest, opts ...scw.RequestOption) (*Server, error) { - server, err := s.WaitForServer(&WaitForServerRequest{ - ServerID: req.ServerID, - Zone: req.Zone, - Timeout: scw.TimeDurationPtr(defaultTimeout), - RetryInterval: scw.TimeDurationPtr(defaultRetryInterval), - }, opts..., - ) - if err != nil { - return nil, errors.Wrap(err, "waiting for server failed") - } - timeToDelete := *server.DeletableAt - time.Sleep(time.Until(timeToDelete)) - return server, nil -} - func (s *PrivateNetworkAPI) WaitForServerPrivateNetworks(req *WaitForServerRequest, opts ...scw.RequestOption) ([]*ServerPrivateNetwork, error) { timeout := defaultTimeout if req.Timeout != nil {