From 01351a6bf89c81b90379ea1a6621a27ff9de4d49 Mon Sep 17 00:00:00 2001 From: Artem Miroshnychenko Date: Wed, 8 Apr 2020 19:37:15 +0300 Subject: [PATCH] remove unused test and function --- internal/ingress/controller/template/template.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/ingress/controller/template/template.go b/internal/ingress/controller/template/template.go index 51a9fec1d..822c68e93 100644 --- a/internal/ingress/controller/template/template.go +++ b/internal/ingress/controller/template/template.go @@ -171,7 +171,6 @@ var ( "proxySetHeader": proxySetHeader, "buildInfluxDB": buildInfluxDB, "enforceRegexModifier": enforceRegexModifier, - "stripLocationModifer": stripLocationModifer, "buildCustomErrorDeps": buildCustomErrorDeps, "buildCustomErrorLocationsPerServer": buildCustomErrorLocationsPerServer, "shouldLoadModSecurityModule": shouldLoadModSecurityModule, @@ -373,10 +372,6 @@ func needsRewrite(location *ingress.Location) bool { return false } -func stripLocationModifer(path string) string { - return strings.TrimLeft(path, "~* ") -} - // enforceRegexModifier checks if the "rewrite-target" or "use-regex" annotation // is used on any location path within a server func enforceRegexModifier(input interface{}) bool {