Commit 5d4fa147 authored by Bryan C. Mills's avatar Bryan C. Mills

cmd/go/internal/modload: remove unused InitGoMod function

Change-Id: I0223d935184017e841d56abe114d78b670457c5a
Reviewed-on: https://go-review.googlesource.com/c/go/+/167437
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 4ba69a9a
...@@ -445,13 +445,6 @@ func legacyModInit() { ...@@ -445,13 +445,6 @@ func legacyModInit() {
} }
} }
// InitGoStmt adds a go statement, unless there already is one.
func InitGoStmt() {
if modFile.Go == nil {
addGoStmt()
}
}
// addGoStmt adds a go statement referring to the current version. // addGoStmt adds a go statement referring to the current version.
func addGoStmt() { func addGoStmt() {
tags := build.Default.ReleaseTags tags := build.Default.ReleaseTags
......
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