From d9efbd97cbf369151e31453749f6692df7413709 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 19 Apr 2022 10:51:33 -0700 Subject: [PATCH] net/dns: remove an unused function Change-Id: I7c920c76223ffac37954ef2a18754afc52177598 Signed-off-by: Brad Fitzpatrick --- net/dns/manager.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/net/dns/manager.go b/net/dns/manager.go index d337a5616..53d1b1210 100644 --- a/net/dns/manager.go +++ b/net/dns/manager.go @@ -197,14 +197,6 @@ func toIPsOnly(resolvers []dnstype.Resolver) (ret []netaddr.IP) { return ret } -func toIPPorts(ips []netaddr.IP) (ret []netaddr.IPPort) { - ret = make([]netaddr.IPPort, 0, len(ips)) - for _, ip := range ips { - ret = append(ret, netaddr.IPPortFrom(ip, 53)) - } - return ret -} - func (m *Manager) EnqueuePacket(bs []byte, proto ipproto.Proto, from, to netaddr.IPPort) error { return m.resolver.EnqueuePacket(bs, proto, from, to) }