From 211376e055eb11a3cae6a93514890317303edae2 Mon Sep 17 00:00:00 2001 From: Chengxiong Ruan Date: Wed, 26 Jul 2023 10:55:41 -0400 Subject: [PATCH] sql: delete unused NewUndefinedFunctionError function Epic: None Release note: None --- pkg/sql/sqlerrors/errors.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/sql/sqlerrors/errors.go b/pkg/sql/sqlerrors/errors.go index 7605b7b77894..21b98bdb1b17 100644 --- a/pkg/sql/sqlerrors/errors.go +++ b/pkg/sql/sqlerrors/errors.go @@ -160,12 +160,6 @@ func NewUndefinedTypeError(name tree.NodeFormatter) error { return pgerror.Newf(pgcode.UndefinedObject, "type %q does not exist", tree.ErrString(name)) } -// NewUndefinedFunctionError creates an error that represents a missing user -// defined function. -func NewUndefinedFunctionError(fn string) error { - return pgerror.Newf(pgcode.UndefinedFunction, "function %q does not exist", fn) -} - // NewUndefinedRelationError creates an error that represents a missing database table or view. func NewUndefinedRelationError(name tree.NodeFormatter) error { return pgerror.Newf(pgcode.UndefinedTable,