remove dead code
This commit is contained in:
parent
23483f7959
commit
73b9284ec7
|
@ -38,7 +38,7 @@ type Client struct {
|
|||
//
|
||||
// c := new(dns.Client)
|
||||
// in, rtt, err := c.Exchange(message, "127.0.0.1:53")
|
||||
//
|
||||
//
|
||||
func (c *Client) Exchange(m *Msg, a string) (r *Msg, rtt time.Duration, err error) {
|
||||
w := &reply{client: c, addr: a}
|
||||
if err = w.dial(); err != nil {
|
||||
|
@ -63,13 +63,6 @@ func (c *Client) ExchangeConn(m *Msg, s net.Conn) (r *Msg, rtt time.Duration, er
|
|||
return r, w.rtt, err
|
||||
}
|
||||
|
||||
func (w *reply) RemoteAddr() net.Addr {
|
||||
if w.conn != nil {
|
||||
return w.conn.RemoteAddr()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// dial connects to the address addr for the network set in c.Net
|
||||
func (w *reply) dial() (err error) {
|
||||
var conn net.Conn
|
||||
|
|
Loading…
Reference in New Issue