diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-18 07:46:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-18 07:46:04 -0400 |
commit | a9e95eb3274140318fe723dc60deb1627bfa31ec (patch) | |
tree | b7cdc5c5c024a11e44d1b6e2704b21aa07df3bbb /libpod/util_unsupported.go | |
parent | fc4a47e0e7ef9404d725d3d1fc7beb621879640c (diff) | |
parent | c692f7a18b0dc49aace5eddc61072667d25d6dc7 (diff) | |
download | podman-a9e95eb3274140318fe723dc60deb1627bfa31ec.tar.gz podman-a9e95eb3274140318fe723dc60deb1627bfa31ec.tar.bz2 podman-a9e95eb3274140318fe723dc60deb1627bfa31ec.zip |
Merge pull request #11628 from Luap99/remove-unsued-code
Remove unused code from libpod
Diffstat (limited to 'libpod/util_unsupported.go')
-rw-r--r-- | libpod/util_unsupported.go | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/libpod/util_unsupported.go b/libpod/util_unsupported.go deleted file mode 100644 index b718d36aa..000000000 --- a/libpod/util_unsupported.go +++ /dev/null @@ -1,34 +0,0 @@ -// +build !linux - -package libpod - -import ( - "github.com/containers/podman/v3/libpod/define" - "github.com/pkg/errors" -) - -func systemdSliceFromPath(parent, name string) (string, error) { - return "", errors.Wrapf(define.ErrOSNotSupported, "cgroups are not supported on non-linux OSes") -} - -func makeSystemdCgroup(path string) error { - return errors.Wrapf(define.ErrOSNotSupported, "cgroups are not supported on non-linux OSes") -} - -func deleteSystemdCgroup(path string) error { - return errors.Wrapf(define.ErrOSNotSupported, "cgroups are not supported on non-linux OSes") -} - -func assembleSystemdCgroupName(baseSlice, newSlice string) (string, error) { - return "", errors.Wrapf(define.ErrOSNotSupported, "cgroups are not supported on non-linux OSes") -} - -// LabelVolumePath takes a mount path for a volume and gives it an -// selinux label of either shared or not -func LabelVolumePath(path string) error { - return define.ErrNotImplemented -} - -func Unmount(mount string) error { - return define.ErrNotImplemented -} |