mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
plugin/rewrite: cleanup (#1916)
delete unused tests and fix import lines. Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -18,9 +18,6 @@ const (
|
||||
RewriteIgnored Result = iota
|
||||
// RewriteDone is returned when rewrite is done on request.
|
||||
RewriteDone
|
||||
// RewriteStatus is returned when rewrite is not needed and status code should be set
|
||||
// for the request.
|
||||
RewriteStatus
|
||||
)
|
||||
|
||||
// These are defined processing mode.
|
||||
@@ -57,11 +54,6 @@ func (rw Rewrite) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg
|
||||
}
|
||||
case RewriteIgnored:
|
||||
break
|
||||
case RewriteStatus:
|
||||
// only valid for complex rules.
|
||||
// if cRule, ok := rule.(*ComplexRule); ok && cRule.Status != 0 {
|
||||
// return cRule.Status, nil
|
||||
// }
|
||||
}
|
||||
}
|
||||
if rw.noRevert || len(wr.ResponseRules) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user