internal: delete LegacyVersionedPackage
For golang/go#39629
Change-Id: Ief53cd28a98772980a6848736ce9a3ae3e9e4191
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/263211
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
diff --git a/internal/legacy_discovery.go b/internal/legacy_discovery.go
index ca0f529..bac9492 100644
--- a/internal/legacy_discovery.go
+++ b/internal/legacy_discovery.go
@@ -36,10 +36,3 @@
// series.
V1Path string
}
-
-// LegacyVersionedPackage is a LegacyPackage along with its corresponding module
-// information.
-type LegacyVersionedPackage struct {
- LegacyPackage
- ModuleInfo
-}
diff --git a/internal/nonredist.go b/internal/nonredist.go
index c2dede3..37c168b 100644
--- a/internal/nonredist.go
+++ b/internal/nonredist.go
@@ -48,7 +48,3 @@
p.DocumentationHTML = safehtml.HTML{}
}
}
-
-func (p *LegacyVersionedPackage) RemoveNonRedistributableData() {
- p.LegacyPackage.RemoveNonRedistributableData()
-}
diff --git a/internal/unit.go b/internal/unit.go
index d916530..15d9650 100644
--- a/internal/unit.go
+++ b/internal/unit.go
@@ -93,10 +93,6 @@
//
// FieldSet bits are unique across the entire project, because some types are
// concatenations (via embedding) of others. For example, a
-// LegacyVersionedPackage contains the fields of both a LegacyModuleInfo and a
-// LegacyPackage, so we can't use the
-// same bits for both LegacyModuleInfo's LegacyReadmeContents field and
-// LegacyPackage's DocumentationHTML field.
type FieldSet int64
// MinimalFields is the empty FieldSet.