aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-06-13 10:38:07 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-06-15 14:53:19 +0000
commit16ea659757ad961d6d9ac3c95d9efbc1a426cef0 (patch)
tree332aba0bd18884670c3c856c06e8c34db8f9b12d /pkg
parent33eb31e031a56fce36c33df16466ca586def5d3f (diff)
downloadpodman-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')
-rw-r--r--pkg/spec/spec.go25
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{}