1
0
mirror of https://github.com/golang/go synced 2024-11-27 00:51:26 -07:00

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 <dmitshur@golang.org>
This commit is contained in:
Robert Griesemer 2018-10-17 17:20:26 -07:00
parent a682cba19b
commit 631b49886c
2 changed files with 2 additions and 7 deletions

View 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) }

View 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 (