Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 44871d2

Browse files
James O. D. Huntamshinde
authored andcommitted
hypervisor: Remove unused methods
Deleted `HypervisorConfig`'s unused `CustomFirmwareAsset()` and `JailerAssetPath()` methods. Signed-off-by: James O. D. Hunt <[email protected]> (cherry picked from commit 4ce09fb)
1 parent f8e25a4 commit 44871d2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

virtcontainers/hypervisor.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -587,11 +587,6 @@ func (conf *HypervisorConfig) HypervisorCtlAssetPath() (string, error) {
587587
return conf.assetPath(types.HypervisorCtlAsset)
588588
}
589589

590-
// JailerAssetPath returns the VM Jailer path
591-
func (conf *HypervisorConfig) JailerAssetPath() (string, error) {
592-
return conf.assetPath(types.JailerAsset)
593-
}
594-
595590
// CustomHypervisorAsset returns true if the hypervisor asset is a custom one, false otherwise.
596591
func (conf *HypervisorConfig) CustomHypervisorAsset() bool {
597592
return conf.isCustomAsset(types.HypervisorAsset)
@@ -602,11 +597,6 @@ func (conf *HypervisorConfig) FirmwareAssetPath() (string, error) {
602597
return conf.assetPath(types.FirmwareAsset)
603598
}
604599

605-
// CustomFirmwareAsset returns true if the firmware asset is a custom one, false otherwise.
606-
func (conf *HypervisorConfig) CustomFirmwareAsset() bool {
607-
return conf.isCustomAsset(types.FirmwareAsset)
608-
}
609-
610600
func appendParam(params []Param, parameter string, value string) []Param {
611601
return append(params, Param{parameter, value})
612602
}

0 commit comments

Comments
 (0)