mirror of
https://github.com/wahyd4/ingress-nginx.git
synced 2026-08-08 21:06:47 +10:00
remove unused test and function
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user