From: Robert Griesemer Date: Thu, 18 Oct 2018 00:20:26 +0000 (-0700) Subject: go/internal/gcimporter: rename file to better reflect new meaning X-Git-Tag: go1.15beta1~1178 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=631b49886c27f88c2d701176104b01b24e551d7c;p=gostls13.git go/internal/gcimporter: rename file to better reflect new meaning Also: Removed unused deref function. Follow-up on https://golang.org/cl/143023. Updates #27999. Change-Id: I088265f0e3ce52029679407f0b84b734191d4d3c Reviewed-on: https://go-review.googlesource.com/c/go/+/143024 Reviewed-by: Dmitri Shuralyov --- diff --git a/src/go/internal/gcimporter/gcimporter.go b/src/go/internal/gcimporter/gcimporter.go index ecfa25e28d..fda15eaaae 100644 --- a/src/go/internal/gcimporter/gcimporter.go +++ b/src/go/internal/gcimporter/gcimporter.go @@ -168,13 +168,6 @@ func Import(fset *token.FileSet, packages map[string]*types.Package, path, srcDi return } -func deref(typ types.Type) types.Type { - if p, _ := typ.(*types.Pointer); p != nil { - return p.Elem() - } - return typ -} - type byPath []*types.Package func (a byPath) Len() int { return len(a) } diff --git a/src/go/internal/gcimporter/bimport.go b/src/go/internal/gcimporter/support.go similarity index 97% rename from src/go/internal/gcimporter/bimport.go rename to src/go/internal/gcimporter/support.go index e291ea644a..2de7cacd2d 100644 --- a/src/go/internal/gcimporter/bimport.go +++ b/src/go/internal/gcimporter/support.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// This file implements support functionality for iimport.go. + package gcimporter import (