Commit c026c37f authored by Matthew Dempsky's avatar Matthew Dempsky

cmd/compile/internal/gc: remove unused parameter to importfile

Change-Id: Icf69862554d0121ec24e3c162d5c48630a03b99a
Reviewed-on: https://go-review.googlesource.com/38583Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent b3a8beb9
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment