From 926e0b7b4c177298beccdb3af3893e07aa2249fd Mon Sep 17 00:00:00 2001 From: George Pollard Date: Mon, 23 Nov 2020 01:40:35 +0000 Subject: [PATCH] Remove another *ByName function --- hack/generator/pkg/astbuilder/calls.go | 8 -------- 1 file changed, 8 deletions(-) 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...) -}