From 87805f890e9226796d61514cc98c4cda3e2b798a Mon Sep 17 00:00:00 2001 From: Thomas Parrott Date: Wed, 4 Sep 2024 11:23:54 +0100 Subject: [PATCH] lxd/instance/drivers/edk2: Removes unused GetArchitectureInstallations function Signed-off-by: Thomas Parrott --- lxd/instance/drivers/edk2/edk2.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/lxd/instance/drivers/edk2/edk2.go b/lxd/instance/drivers/edk2/edk2.go index bd3df2805c77..380d4e22eaa4 100644 --- a/lxd/instance/drivers/edk2/edk2.go +++ b/lxd/instance/drivers/edk2/edk2.go @@ -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 { @@ -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 {