diff options
author | 2022-01-22 07:05:11 +0800 | |
---|---|---|
committer | 2022-01-21 15:05:11 -0800 | |
commit | 1d3e9011575e4e27934e1f41cfe87096d5cd4eaa (patch) | |
tree | 94873bdff2ab100c7f4a200d6f67a07a9fa96104 /plugin/file/rrutil/util.go | |
parent | 1c6b68f3cbbaeab0f9d486d155912be260a3eada (diff) | |
download | coredns-1d3e9011575e4e27934e1f41cfe87096d5cd4eaa.tar.gz coredns-1d3e9011575e4e27934e1f41cfe87096d5cd4eaa.tar.zst coredns-1d3e9011575e4e27934e1f41cfe87096d5cd4eaa.zip |
plugin/file: optimize cname get rr by type (#5080)
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
Diffstat (limited to 'plugin/file/rrutil/util.go')
-rw-r--r-- | plugin/file/rrutil/util.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/plugin/file/rrutil/util.go b/plugin/file/rrutil/util.go index 63e447196..564b82cd1 100644 --- a/plugin/file/rrutil/util.go +++ b/plugin/file/rrutil/util.go @@ -16,14 +16,3 @@ func SubTypeSignature(rrs []dns.RR, subtype uint16) []dns.RR { } return sigs } - -// CNAMEForType returns the RR that have the qtype from targets. -func CNAMEForType(rrs []dns.RR, qtype uint16) []dns.RR { - ret := []dns.RR{} - for _, target := range rrs { - if target.Header().Rrtype == qtype { - ret = append(ret, target) - } - } - return ret -} |