From 16ea659757ad961d6d9ac3c95d9efbc1a426cef0 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 13 Jun 2018 10:38:07 +0200 Subject: spec: remove dead code Signed-off-by: Giuseppe Scrivano Closes: #871 Approved by: mheon --- pkg/spec/spec.go | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/pkg/spec/spec.go b/pkg/spec/spec.go index 6fc49a077..b341c8a35 100644 --- a/pkg/spec/spec.go +++ b/pkg/spec/spec.go @@ -153,7 +153,6 @@ func CreateConfigToOCISpec(config *CreateConfig) (*spec.Spec, error) { //nolint } } - for _, uidmap := range config.IDMappings.UIDMap { g.AddLinuxUIDMapping(uint32(uidmap.HostID), uint32(uidmap.ContainerID), uint32(uidmap.Size)) } @@ -287,30 +286,6 @@ func CreateConfigToOCISpec(config *CreateConfig) (*spec.Spec, error) { //nolint } } - /* - //Annotations - Resources: &configSpec.LinuxResources{ - BlockIO: &blkio, - //HugepageLimits: - Network: &configSpec.LinuxNetwork{ - // ClassID *uint32 - // Priorites []LinuxInterfacePriority - }, - }, - //CgroupsPath: - //Namespaces: []LinuxNamespace - // DefaultAction: - // Architectures - // Syscalls: - }, - // RootfsPropagation - // MaskedPaths - // ReadonlyPaths: - // IntelRdt - }, - } - */ - // If we cannot add resources be sure everything is cleared out if !canAddResources { configSpec.Linux.Resources = &spec.LinuxResources{} -- cgit v1.2.3-54-g00ecf