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

Commit

Permalink
hypervisor: Remove unused methods
Browse files Browse the repository at this point in the history
Deleted `HypervisorConfig`'s unused  `CustomFirmwareAsset()` and
`JailerAssetPath()` methods.

Signed-off-by: James O. D. Hunt <[email protected]>
(cherry picked from commit 4ce09fb)
  • Loading branch information
jodh-intel authored and amshinde committed Nov 10, 2020
1 parent f8e25a4 commit 44871d2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions virtcontainers/hypervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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})
}
Expand Down

0 comments on commit 44871d2

Please sign in to comment.