diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-12-12 09:40:40 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-12-14 14:04:02 +0300 |
commit | b20ffe3e5400b46f6c7a595ac05ce6d615bf52c0 (patch) | |
tree | ffee70e4731be1f68ad59085a0f5af580cb56dc8 /internal/helper | |
parent | 93488d22495586a8ab51adacc42afb3811f1291a (diff) |
helper: Remove unused `ErrUnimplementedf()` function
Remove the unused `ErrUnimplementedf()` error helper function.
Diffstat (limited to 'internal/helper')
-rw-r--r-- | internal/helper/error.go | 6 | ||||
-rw-r--r-- | internal/helper/error_test.go | 5 |
2 files changed, 0 insertions, 11 deletions
diff --git a/internal/helper/error.go b/internal/helper/error.go index ee159314d..cb9bf6ab3 100644 --- a/internal/helper/error.go +++ b/internal/helper/error.go @@ -93,12 +93,6 @@ func ErrUnknownf(format string, a ...interface{}) error { return formatError(codes.Unknown, format, a...) } -// ErrUnimplementedf wraps a formatted error with codes.Unimplemented, unless the formatted error is a wrapped -// gRPC error. -func ErrUnimplementedf(format string, a ...interface{}) error { - return formatError(codes.Unimplemented, format, a...) -} - // ErrUnauthenticatedf wraps a formatted error with codes.Unauthenticated, unless the formatted error is a wrapped // gRPC error. func ErrUnauthenticatedf(format string, a ...interface{}) error { diff --git a/internal/helper/error_test.go b/internal/helper/error_test.go index 26dfdebad..e79888d10 100644 --- a/internal/helper/error_test.go +++ b/internal/helper/error_test.go @@ -75,11 +75,6 @@ func TestErrorf(t *testing.T) { expectedCode: codes.Unknown, }, { - desc: "ErrUnimplementedf", - errorf: ErrUnimplementedf, - expectedCode: codes.Unimplemented, - }, - { desc: "ErrUnauthenticatedf", errorf: ErrUnauthenticatedf, expectedCode: codes.Unauthenticated, |