diff --git a/pkg/network/address.go b/pkg/network/address.go index df5669e1..77c5a2f2 100644 --- a/pkg/network/address.go +++ b/pkg/network/address.go @@ -131,13 +131,3 @@ func multiaddrStringFromHostAddr(host string) (string, error) { func IsLocalAddress(src LocalAddressSource, addr Address) bool { return src.LocalAddress().Equal(addr) } - -// HostAddrFromMultiaddr converts "/dns4/localhost/tcp/8080" to "localhost:8080". -func HostAddrFromMultiaddr(multiaddr string) (string, error) { - address, err := AddressFromString(multiaddr) - if err != nil { - return "", err - } - - return address.HostAddrString() -}