Skip to content

Commit e94a8b8

Browse files
committed
remove unused fn
1 parent 7430cca commit e94a8b8

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

internal/clients/fleet/fleet.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99

1010
fleetapi "github.com/elastic/terraform-provider-elasticstack/generated/fleet"
1111
fwdiag "github.com/hashicorp/terraform-plugin-framework/diag"
12-
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
1312
)
1413

1514
var (
@@ -435,16 +434,6 @@ func fromErr(err error) fwdiag.Diagnostics {
435434
}
436435
}
437436

438-
func reportUnknownError(statusCode int, body []byte) diag.Diagnostics {
439-
return diag.Diagnostics{
440-
diag.Diagnostic{
441-
Severity: diag.Error,
442-
Summary: fmt.Sprintf("Unexpected status code from server: got HTTP %d", statusCode),
443-
Detail: string(body),
444-
},
445-
}
446-
}
447-
448437
func reportUnknownErrorFw(statusCode int, body []byte) fwdiag.Diagnostics {
449438
return fwdiag.Diagnostics{
450439
fwdiag.NewErrorDiagnostic(

0 commit comments

Comments
 (0)