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

Commit

Permalink
shimv2: Removing function as no longer used
Browse files Browse the repository at this point in the history
Function removeNamespace is no longer used. Get rid of
it.

Signed-off-by: Archana Shinde <[email protected]>
  • Loading branch information
amshinde committed Jun 25, 2020
1 parent 624d13d commit e0dc806
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions containerd-shim-v2/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
vc "github.com/kata-containers/runtime/virtcontainers"
"github.com/kata-containers/runtime/virtcontainers/pkg/compatoci"
"github.com/kata-containers/runtime/virtcontainers/pkg/oci"
"github.com/opencontainers/runtime-spec/specs-go"
"github.com/sirupsen/logrus"
)

Expand Down Expand Up @@ -124,12 +123,3 @@ func noNeedForOutput(detach bool, tty bool) bool {

return true
}

func removeNamespace(s *specs.Spec, nsType specs.LinuxNamespaceType) {
for i, n := range s.Linux.Namespaces {
if n.Type == nsType {
s.Linux.Namespaces = append(s.Linux.Namespaces[:i], s.Linux.Namespaces[i+1:]...)
return
}
}
}

0 comments on commit e0dc806

Please sign in to comment.