diff --git a/promql/functions.go b/promql/functions.go index 6c2b71f2b..47ea26b3c 100644 --- a/promql/functions.go +++ b/promql/functions.go @@ -920,12 +920,6 @@ var FunctionCalls = map[string]FunctionCall{ "year": funcYear, } -// getFunction returns a predefined Function object for the given name. -func getFunctionCall(name string) (FunctionCall, bool) { - function, ok := FunctionCalls[name] - return function, ok -} - type vectorByValueHeap Vector func (s vectorByValueHeap) Len() int {