diff --git a/hack/generator/pkg/astbuilder/calls.go b/hack/generator/pkg/astbuilder/calls.go index 34ddc27d9..95e18df43 100644 --- a/hack/generator/pkg/astbuilder/calls.go +++ b/hack/generator/pkg/astbuilder/calls.go @@ -58,11 +58,3 @@ func InvokeQualifiedFunc(qualifier string, funcName string, arguments ...ast.Exp X: CallQualifiedFunc(qualifier, funcName, arguments...), } } - -// InvokeQualifiedFuncByName() creates a statement to invoke a qualified function of the specified -// name with the given arguments, generating code like: -// .(arguments...) -// If you want to use the result of the function call as a value, use CallQualifiedFuncByName() instead -func InvokeQualifiedFuncByName(qualifier string, funcName string, arguments ...ast.Expr) ast.Stmt { - return InvokeQualifiedFunc(qualifier, funcName, arguments...) -}