remove dead code

This commit is contained in:
Miek Gieben 2013-01-28 20:40:41 +01:00
parent 23483f7959
commit 73b9284ec7
1 changed files with 1 additions and 8 deletions

View File

@ -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