distro: remove unused field from distribution struct
The `distribution` struct defined in multiple distributions contained unused `imageTypes` field. Remove it to simplify code. Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
973b4b2714
commit
b7ceec4867
5 changed files with 0 additions and 10 deletions
|
|
@ -22,7 +22,6 @@ const ostreeRef = "fedora/32/%s/iot"
|
||||||
|
|
||||||
type distribution struct {
|
type distribution struct {
|
||||||
arches map[string]architecture
|
arches map[string]architecture
|
||||||
imageTypes map[string]imageType
|
|
||||||
buildPackages []string
|
buildPackages []string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -765,7 +764,6 @@ func New() distro.Distro {
|
||||||
}
|
}
|
||||||
|
|
||||||
r := distribution{
|
r := distribution{
|
||||||
imageTypes: map[string]imageType{},
|
|
||||||
buildPackages: []string{
|
buildPackages: []string{
|
||||||
"dnf",
|
"dnf",
|
||||||
"dosfstools",
|
"dosfstools",
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ const ostreeRef = "fedora/33/%s/iot"
|
||||||
|
|
||||||
type distribution struct {
|
type distribution struct {
|
||||||
arches map[string]architecture
|
arches map[string]architecture
|
||||||
imageTypes map[string]imageType
|
|
||||||
buildPackages []string
|
buildPackages []string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -800,7 +799,6 @@ func New() distro.Distro {
|
||||||
}
|
}
|
||||||
|
|
||||||
r := distribution{
|
r := distribution{
|
||||||
imageTypes: map[string]imageType{},
|
|
||||||
buildPackages: []string{
|
buildPackages: []string{
|
||||||
"dnf",
|
"dnf",
|
||||||
"dosfstools",
|
"dosfstools",
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ const ostreeRef = "rhel/8/%s/edge"
|
||||||
|
|
||||||
type distribution struct {
|
type distribution struct {
|
||||||
arches map[string]architecture
|
arches map[string]architecture
|
||||||
imageTypes map[string]imageType
|
|
||||||
buildPackages []string
|
buildPackages []string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1025,7 +1024,6 @@ func New() distro.Distro {
|
||||||
}
|
}
|
||||||
|
|
||||||
r := distribution{
|
r := distribution{
|
||||||
imageTypes: map[string]imageType{},
|
|
||||||
buildPackages: []string{
|
buildPackages: []string{
|
||||||
"dnf",
|
"dnf",
|
||||||
"dosfstools",
|
"dosfstools",
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@ const ostreeRef = "rhel/8/%s/edge"
|
||||||
|
|
||||||
type distribution struct {
|
type distribution struct {
|
||||||
arches map[string]architecture
|
arches map[string]architecture
|
||||||
imageTypes map[string]distro.ImageType
|
|
||||||
buildPackages []string
|
buildPackages []string
|
||||||
isCentos bool
|
isCentos bool
|
||||||
}
|
}
|
||||||
|
|
@ -1211,7 +1210,6 @@ func newDistro(isCentos bool) distro.Distro {
|
||||||
}
|
}
|
||||||
|
|
||||||
r := distribution{
|
r := distribution{
|
||||||
imageTypes: map[string]distro.ImageType{},
|
|
||||||
buildPackages: []string{
|
buildPackages: []string{
|
||||||
"dnf",
|
"dnf",
|
||||||
"dosfstools",
|
"dosfstools",
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ const modulePlatformID = "platform:el9"
|
||||||
|
|
||||||
type distribution struct {
|
type distribution struct {
|
||||||
arches map[string]architecture
|
arches map[string]architecture
|
||||||
imageTypes map[string]distro.ImageType
|
|
||||||
buildPackages []string
|
buildPackages []string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -801,7 +800,6 @@ func New() distro.Distro {
|
||||||
}
|
}
|
||||||
|
|
||||||
r := distribution{
|
r := distribution{
|
||||||
imageTypes: map[string]distro.ImageType{},
|
|
||||||
buildPackages: []string{
|
buildPackages: []string{
|
||||||
"dnf",
|
"dnf",
|
||||||
"dosfstools",
|
"dosfstools",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue