Skip to content

Commit 631b498

Browse files
committed
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 <[email protected]>
1 parent a682cba commit 631b498

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/go/internal/gcimporter/gcimporter.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,6 @@ func Import(fset *token.FileSet, packages map[string]*types.Package, path, srcDi
168168
return
169169
}
170170

171-
func deref(typ types.Type) types.Type {
172-
if p, _ := typ.(*types.Pointer); p != nil {
173-
return p.Elem()
174-
}
175-
return typ
176-
}
177-
178171
type byPath []*types.Package
179172

180173
func (a byPath) Len() int { return len(a) }

src/go/internal/gcimporter/bimport.go renamed to src/go/internal/gcimporter/support.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
// This file implements support functionality for iimport.go.
6+
57
package gcimporter
68

79
import (

0 commit comments

Comments
 (0)