From 44871d29b00a528da5e0c0fa6bb85e0993e515fb 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 3f910e44da..707eca6b83 100644 --- a/virtcontainers/hypervisor.go +++ b/virtcontainers/hypervisor.go @@ -587,11 +587,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) @@ -602,11 +597,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}) }