]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/gc: remove unused parameter to importfile
authorMatthew Dempsky <mdempsky@google.com>
Fri, 24 Mar 2017 20:10:24 +0000 (13:10 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 24 Mar 2017 22:23:31 +0000 (22:23 +0000)
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>

src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/gc/noder.go

index 8e9004d6e97d8f3400fdb3e3d8400579f46e46bb..413ff0e879824069268adf6be67ec4a294a1a855 100644 (file)
@@ -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")
index 8b38606d334c1eb58140aaf0978732b2d5530079..9226482ae96d34cd2658d095bff89ff4f7089abf 100644 (file)
@@ -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 {