]> Cypherpunks repositories - gostls13.git/commitdiff
go/internal/gcimporter: rename file to better reflect new meaning
authorRobert Griesemer <gri@golang.org>
Thu, 18 Oct 2018 00:20:26 +0000 (17:20 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 20 Feb 2020 16:23:27 +0000 (16:23 +0000)
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 <dmitshur@golang.org>
src/go/internal/gcimporter/gcimporter.go
src/go/internal/gcimporter/support.go [moved from src/go/internal/gcimporter/bimport.go with 97% similarity]

index ecfa25e28dcaf5f813b8e0f57f5f38fb4d446b6f..fda15eaaaedcf750ee4109237da837bffe21ea5b 100644 (file)
@@ -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) }
similarity index 97%
rename from src/go/internal/gcimporter/bimport.go
rename to src/go/internal/gcimporter/support.go
index e291ea644a9cf2aaf5510b47058ae5285fefaf30..2de7cacd2d91159999661987e1f3bc4f47dc6024 100644 (file)
@@ -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 (