Remove dead code

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-12-27 22:26:51 -03:00
parent 944d36fdba
commit d9af197e62
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
7 changed files with 4 additions and 26 deletions

View file

@ -56,7 +56,7 @@ func (n *NGINXController) Check(_ *http.Request) error {
return errors.Wrapf(err, "reading NGINX PID from file %v", nginx.PID)
}
_, err = fs.NewProc(pid)
_, err = fs.Proc(pid)
if err != nil {
return errors.Wrapf(err, "checking for NGINX process with PID %v", pid)
}

View file

@ -630,9 +630,6 @@ func isCatchAllIngress(spec networkingv1beta1.IngressSpec) bool {
return spec.Backend != nil && len(spec.Rules) == 0
}
// Default path type is Prefix to not break existing definitions
var defaultPathType = networkingv1beta1.PathTypePrefix
// syncIngress parses ingress annotations converting the value of the
// annotation to a go struct
func (s *k8sStore) syncIngress(ing *networkingv1beta1.Ingress) {

View file

@ -50,10 +50,9 @@ import (
)
const (
slash = "/"
nonIdempotent = "non_idempotent"
defBufferSize = 65535
defAuthSigninRedirectParam = "rd"
slash = "/"
nonIdempotent = "non_idempotent"
defBufferSize = 65535
)
// TemplateWriter is the interface to render a template