Skip to content

Commit 96687b6

Browse files
committed
repos: remove unused Repo.UsePkgGoDev
UsePkgGoDev was added in CL 234677 to aid with a gradual migration on golang.org. That redirection has been completed as of CL 275195, and UsePkgGoDev is no longer meaningful nor used. Remove it, since it's allowed per x/build's compatibilty policy, to keep things tidy. Updates golang/go#36106. Updates golang/go#39150. Change-Id: If3f9bed7f215a7c572a2d7a9f25b3184a1e5362a Reviewed-on: https://go-review.googlesource.com/c/build/+/289700 Trust: Dmitri Shuralyov <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Alexander Rakoczy <[email protected]>
1 parent cd15c8b commit 96687b6

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

repos/repos.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ type Repo struct {
3939
// https://golang.org/pkg/#subrepo.
4040
// It should be plain text. Hostnames may be auto-linkified.
4141
WebsiteDesc string
42-
43-
// usePkgGoDev controls whether the repo has opted-in to use
44-
// pkg.go.dev for displaying documentation for Go packages.
45-
usePkgGoDev bool
4642
}
4743

4844
// ByGerritProject maps from a Gerrit project name ("go", "net", etc)
@@ -77,7 +73,7 @@ func init() {
7773
x("net", desc("additional networking packages"))
7874
x("oauth2")
7975
x("perf", desc("packages and tools for performance measurement, storage, and analysis"))
80-
x("pkgsite", desc("home of the pkg.go.dev website"), usePkgGoDev(), noBuildAndNoDash)
76+
x("pkgsite", desc("home of the pkg.go.dev website"), noBuildAndNoDash)
8177
x("playground", noDash)
8278
x("review", desc("a tool for working with Gerrit code reviews"))
8379
x("scratch", noDash)
@@ -129,7 +125,6 @@ func archivedOnGitHub(r *Repo) {
129125
func importPath(v string) modifyRepo { return func(r *Repo) { r.ImportPath = v } }
130126

131127
func desc(v string) modifyRepo { return func(r *Repo) { r.WebsiteDesc = v } }
132-
func usePkgGoDev() modifyRepo { return func(r *Repo) { r.usePkgGoDev = true } }
133128

134129
// addMirrored adds a repo that's on Gerrit and mirrored to GitHub.
135130
func addMirrored(proj string, opts ...modifyRepo) {
@@ -202,7 +197,3 @@ func (r *Repo) ShowOnDashboard() bool { return r.showOnDashboard }
202197
// at or is mirrored to. It returns the empty string if this repo has no
203198
// GitHub presence.
204199
func (r *Repo) GitHubRepo() string { return r.gitHubRepo }
205-
206-
// UsePkgGoDev reports whether the repo has opted-in to use
207-
// pkg.go.dev for displaying documentation for Go packages.
208-
func (r *Repo) UsePkgGoDev() bool { return r.usePkgGoDev }

0 commit comments

Comments
 (0)