diff options
| author | Julie Qiu <julie@golang.org> | 2020-10-25 21:58:01 -0400 |
|---|---|---|
| committer | Julie Qiu <julie@golang.org> | 2020-10-26 13:05:48 +0000 |
| commit | 074edda7650c601b376c442f70ec1ee9edd15e4c (patch) | |
| tree | 0f76b88fac083b5fbe8beb24cb8924b6bf11cb76 /internal/testing/sample | |
| parent | 4cc0821bb243163181a08cece97be19cf8f832f9 (diff) | |
| download | go-x-pkgsite-074edda7650c601b376c442f70ec1ee9edd15e4c.tar.xz | |
internal: delete LegacyPackage
For golang/go#39629
Change-Id: Ie79750dfd94cec05078b2122ec99e6aa59e75b2e
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/265004
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'internal/testing/sample')
| -rw-r--r-- | internal/testing/sample/legacy.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/internal/testing/sample/legacy.go b/internal/testing/sample/legacy.go index 300a0846..27e4ce1c 100644 --- a/internal/testing/sample/legacy.go +++ b/internal/testing/sample/legacy.go @@ -12,29 +12,6 @@ import ( "golang.org/x/pkgsite/internal" ) -// LegacyPackage constructs a package with the given module path and suffix. -// -// If modulePath is the standard library, the package path is the -// suffix, which must not be empty. Otherwise, the package path -// is the concatenation of modulePath and suffix. -// -// The package name is last component of the package path. -func LegacyPackage(modulePath, suffix string) *internal.LegacyPackage { - p := constructFullPath(modulePath, suffix) - return &internal.LegacyPackage{ - Name: path.Base(p), - Path: p, - V1Path: internal.V1Path(p, modulePath), - Synopsis: Synopsis, - IsRedistributable: true, - Licenses: LicenseMetadata, - DocumentationHTML: DocumentationHTML, - Imports: Imports, - GOOS: GOOS, - GOARCH: GOARCH, - } -} - func LegacyDefaultModule() *internal.Module { fp := constructFullPath(ModulePath, Suffix) return AddPackage(LegacyModule(ModulePath, VersionString), UnitForPackage(fp, ModulePath, VersionString, path.Base(fp), true)) |
