Skip to content

Commit

Permalink
lxd/instance/drivers/edk2: Removes unused GetArchitectureInstallation…
Browse files Browse the repository at this point in the history
…s function

Signed-off-by: Thomas Parrott <[email protected]>
  • Loading branch information
tomponline committed Sep 4, 2024
1 parent 9a40488 commit 7bdeb9b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions lxd/instance/drivers/edk2/edk2.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,6 @@ var architectureInstallations = map[int][]Installation{
}},
}

// GetArchitectureInstallations returns an array of installations for a specific host architecture.
func GetArchitectureInstallations(hostArch int) []Installation {
installations, found := architectureInstallations[hostArch]
if found {
return installations
}

return []Installation{}
}

// GetAchitectureFirmwarePairs creates an array of FirmwarePair for a
// specific host architecture.
func GetAchitectureFirmwarePairs(hostArch int) []FirmwarePair {
Expand All @@ -175,7 +165,7 @@ func GetAchitectureFirmwarePairs(hostArch int) []FirmwarePair {
func GetArchitectureFirmwarePairsForUsage(hostArch int, usage FirmwareUsage) []FirmwarePair {
firmwares := make([]FirmwarePair, 0)

for _, installation := range GetArchitectureInstallations(hostArch) {
for _, installation := range architectureInstallations[hostArch] {
usage, found := installation.Usage[usage]
if found {
for _, firmwarePair := range usage {
Expand Down

0 comments on commit 7bdeb9b

Please sign in to comment.