Skip to content

Commit

Permalink
go/internal/gcimporter: rename file to better reflect new meaning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
griesemer committed Feb 20, 2020
1 parent a682cba commit 631b498
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/go/internal/gcimporter/gcimporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 631b498

Please sign in to comment.