mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
request.Request: remove useless function (#2714)
ErrorMessage was a very shallow function that didn't add anything. Remove it and remove its usage. Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -433,14 +433,6 @@ func (r *Request) QClass() uint16 {
|
||||
|
||||
}
|
||||
|
||||
// ErrorMessage returns an error message suitable for sending
|
||||
// back to the client.
|
||||
func (r *Request) ErrorMessage(rcode int) *dns.Msg {
|
||||
m := new(dns.Msg)
|
||||
m.SetRcode(r.Req, rcode)
|
||||
return m
|
||||
}
|
||||
|
||||
// Clear clears all caching from Request s.
|
||||
func (r *Request) Clear() {
|
||||
r.name = ""
|
||||
|
||||
Reference in New Issue
Block a user