From 20fcb93ce586a3b13c24d7265ab331e03e6f6890 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Wed, 4 Nov 2020 11:37:43 +0000 Subject: [PATCH] hypervisor: Remove unused methods Deleted `HypervisorConfig`'s unused `CustomFirmwareAsset()` and `JailerAssetPath()` methods. Signed-off-by: James O. D. Hunt (cherry picked from commit 4ce09fb978b7249d629818b6f5034d6cd20b2775) --- virtcontainers/hypervisor.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/virtcontainers/hypervisor.go b/virtcontainers/hypervisor.go index 4bb2eeb7b4..95b4d9282b 100644 --- a/virtcontainers/hypervisor.go +++ b/virtcontainers/hypervisor.go @@ -578,11 +578,6 @@ func (conf *HypervisorConfig) HypervisorCtlAssetPath() (string, error) { return conf.assetPath(types.HypervisorCtlAsset) } -// JailerAssetPath returns the VM Jailer path -func (conf *HypervisorConfig) JailerAssetPath() (string, error) { - return conf.assetPath(types.JailerAsset) -} - // CustomHypervisorAsset returns true if the hypervisor asset is a custom one, false otherwise. func (conf *HypervisorConfig) CustomHypervisorAsset() bool { return conf.isCustomAsset(types.HypervisorAsset) @@ -593,11 +588,6 @@ func (conf *HypervisorConfig) FirmwareAssetPath() (string, error) { return conf.assetPath(types.FirmwareAsset) } -// CustomFirmwareAsset returns true if the firmware asset is a custom one, false otherwise. -func (conf *HypervisorConfig) CustomFirmwareAsset() bool { - return conf.isCustomAsset(types.FirmwareAsset) -} - func appendParam(params []Param, parameter string, value string) []Param { return append(params, Param{parameter, value}) }