Skip to content

Commit 7385947

Browse files
author
Jay Conrod
committed
cmd/go/internal/modcmd: remove dead function addModFlag
This function is never called and should have been removed earlier. work.AddModCommonFlags defines the -modfile flag instead. Fixes #37189 Change-Id: I73ad2a727013a849cba44bf70de04160f37c97dd Reviewed-on: https://go-review.googlesource.com/c/go/+/219197 Run-TryBot: Jay Conrod <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
1 parent 5ce8005 commit 7385947

File tree

1 file changed

+0
-5
lines changed
  • src/cmd/go/internal/modcmd

1 file changed

+0
-5
lines changed

src/cmd/go/internal/modcmd/mod.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ package modcmd
77

88
import (
99
"cmd/go/internal/base"
10-
"cmd/go/internal/cfg"
1110
)
1211

1312
var CmdMod = &base.Command{
@@ -32,7 +31,3 @@ See 'go help modules' for an overview of module functionality.
3231
cmdWhy,
3332
},
3433
}
35-
36-
func addModFlags(cmd *base.Command) {
37-
cmd.Flag.StringVar(&cfg.ModFile, "modfile", "", "")
38-
}

0 commit comments

Comments
 (0)