diff --git a/equinix/provider.go b/equinix/provider.go index 2f9ed13a6..b26d9dcf7 100644 --- a/equinix/provider.go +++ b/equinix/provider.go @@ -443,13 +443,3 @@ func schemaSetToMap(set *schema.Set) map[int]interface{} { } return transformed } - -func diagnosticsWrapper(fn func(ctx context.Context, d *schema.ResourceData, meta interface{}) error) func(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { - return func(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { - if err := fn(ctx, d, meta); err != nil { - return diag.FromErr(err) - } - - return nil - } -}