Skip to content

Commit ff6b8a9

Browse files
committed
Remove unused loadCachedIP
1 parent 1172225 commit ff6b8a9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

dnscrypt-proxy/xtransport.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,6 @@ func (xTransport *XTransport) loadCachedIPs(host string) (ips []net.IP, expired
217217
return ips, expired, updating
218218
}
219219

220-
func (xTransport *XTransport) loadCachedIP(host string) (net.IP, bool, bool) {
221-
ips, expired, updating := xTransport.loadCachedIPs(host)
222-
if len(ips) > 0 {
223-
return ips[0], expired, updating
224-
}
225-
return nil, expired, updating
226-
}
227-
228220
func (xTransport *XTransport) rebuildTransport() {
229221
dlog.Debug("Rebuilding transport")
230222
if xTransport.transport != nil {

0 commit comments

Comments
 (0)