mirror of
https://github.com/golang/go.git
synced 2025-05-25 09:21:21 +00:00
cmd/compile/internal/gc: remove unused parameter to importfile
Change-Id: Icf69862554d0121ec24e3c162d5c48630a03b99a Reviewed-on: https://go-review.googlesource.com/38583 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
b3a8beb9d1
commit
c026c37f33
@ -745,7 +745,7 @@ func loadsys() {
|
||||
inimport = false
|
||||
}
|
||||
|
||||
func importfile(f *Val, indent []byte) *Pkg {
|
||||
func importfile(f *Val) *Pkg {
|
||||
path_, ok := f.U.(string)
|
||||
if !ok {
|
||||
yyerror("import path must be a string")
|
||||
|
@ -136,7 +136,7 @@ func (p *noder) decls(decls []syntax.Decl) (l []*Node) {
|
||||
|
||||
func (p *noder) importDecl(imp *syntax.ImportDecl) {
|
||||
val := p.basicLit(imp.Path)
|
||||
ipkg := importfile(&val, nil)
|
||||
ipkg := importfile(&val)
|
||||
|
||||
if ipkg == nil {
|
||||
if nerrors == 0 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user