mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-21 20:08:54 +00:00
lint: Fix virtcontainers unused errors
Remove unused variables and functions identified by the `varcheck` and `unused` linters. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
@@ -515,21 +515,6 @@ func (k *kataAgent) stopPod(pod Pod) error {
|
||||
return k.proxy.stop(pod, k.state.ProxyPid)
|
||||
}
|
||||
|
||||
func appendStorageFromMounts(storage []*grpc.Storage, mounts []*Mount) []*grpc.Storage {
|
||||
for _, m := range mounts {
|
||||
s := &grpc.Storage{
|
||||
Source: m.Source,
|
||||
MountPoint: m.Destination,
|
||||
Fstype: m.Type,
|
||||
Options: m.Options,
|
||||
}
|
||||
|
||||
storage = append(storage, s)
|
||||
}
|
||||
|
||||
return storage
|
||||
}
|
||||
|
||||
func (k *kataAgent) replaceOCIMountSource(spec *specs.Spec, guestMounts []Mount) error {
|
||||
ociMounts := spec.Mounts
|
||||
|
||||
|
Reference in New Issue
Block a user