diff options
author | 2018-06-30 21:55:38 +0100 | |
---|---|---|
committer | 2018-06-30 21:55:38 +0100 | |
commit | 0a43306871ce4ae4af96a9aee433357d9c8303a0 (patch) | |
tree | f56e195922572aafaf7900de3d461039285212d3 /plugin/rewrite/rewrite.go | |
parent | 9d555ab8d2f712a50ec1b7f46de0a7405a28eb9a (diff) | |
download | coredns-0a43306871ce4ae4af96a9aee433357d9c8303a0.tar.gz coredns-0a43306871ce4ae4af96a9aee433357d9c8303a0.tar.zst coredns-0a43306871ce4ae4af96a9aee433357d9c8303a0.zip |
plugin/rewrite: cleanup (#1916)
delete unused tests and fix import lines.
Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/rewrite/rewrite.go')
-rw-r--r-- | plugin/rewrite/rewrite.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/plugin/rewrite/rewrite.go b/plugin/rewrite/rewrite.go index 422ebd9c6..3ec58d32c 100644 --- a/plugin/rewrite/rewrite.go +++ b/plugin/rewrite/rewrite.go @@ -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 { |