]> Cypherpunks repositories - gostls13.git/commitdiff
net: remove unused goLookupHost method
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Wed, 16 Nov 2022 11:18:32 +0000 (11:18 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 16 Nov 2022 16:25:58 +0000 (16:25 +0000)
Change-Id: I62b9d0dcbec647fdd3279d78b9999dd933ff0bbd
GitHub-Last-Rev: f83db66c935dd7a14128d1e87c9323539e9d2d16
GitHub-Pull-Request: golang/go#56758
Reviewed-on: https://go-review.googlesource.com/c/go/+/451135
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Joedian Reid <joedian@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/net/dnsclient_unix.go

index f13cdefefdb60d827786a747749b93b06df61d5e..652f59ede7f02bee6cebc7bcdf1afa07a1413441 100644 (file)
@@ -552,16 +552,6 @@ func (o hostLookupOrder) String() string {
        return "hostLookupOrder=" + itoa.Itoa(int(o)) + "??"
 }
 
-// goLookupHost is the native Go implementation of LookupHost.
-// Used only if cgoLookupHost refuses to handle the request
-// (that is, only if cgoLookupHost is the stub in cgo_stub.go).
-// Normally we let cgo use the C library resolver instead of
-// depending on our lookup code, so that Go and C get the same
-// answers.
-func (r *Resolver) goLookupHost(ctx context.Context, name string, conf *dnsConfig) (addrs []string, err error) {
-       return r.goLookupHostOrder(ctx, name, hostLookupFilesDNS, conf)
-}
-
 func (r *Resolver) goLookupHostOrder(ctx context.Context, name string, order hostLookupOrder, conf *dnsConfig) (addrs []string, err error) {
        if order == hostLookupFilesDNS || order == hostLookupFiles {
                // Use entries from /etc/hosts if they match.