diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-06-13 10:38:07 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-15 14:53:19 +0000 |
commit | 16ea659757ad961d6d9ac3c95d9efbc1a426cef0 (patch) | |
tree | 332aba0bd18884670c3c856c06e8c34db8f9b12d /pkg/spec/spec.go | |
parent | 33eb31e031a56fce36c33df16466ca586def5d3f (diff) | |
download | podman-16ea659757ad961d6d9ac3c95d9efbc1a426cef0.tar.gz podman-16ea659757ad961d6d9ac3c95d9efbc1a426cef0.tar.bz2 podman-16ea659757ad961d6d9ac3c95d9efbc1a426cef0.zip |
spec: remove dead code
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Closes: #871
Approved by: mheon
Diffstat (limited to 'pkg/spec/spec.go')
-rw-r--r-- | pkg/spec/spec.go | 25 |
1 files changed, 0 insertions, 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{} |