Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Remove another *ByName function
Browse files Browse the repository at this point in the history
  • Loading branch information
Porges committed Nov 23, 2020
1 parent 56a8f7a commit 926e0b7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions hack/generator/pkg/astbuilder/calls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
// <qualifier>.<funcName>(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...)
}

0 comments on commit 926e0b7

Please sign in to comment.