summaryrefslogtreecommitdiff
path: root/libpod/util_unsupported.go
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2021-09-17 13:40:05 +0200
committerPaul Holzinger <pholzing@redhat.com>2021-09-17 13:57:38 +0200
commitc692f7a18b0dc49aace5eddc61072667d25d6dc7 (patch)
tree03917ee80a7e300caa32431ff572400f528075ad /libpod/util_unsupported.go
parent9a5987cf6a7729f9d03a663dd361a37ca473da59 (diff)
downloadpodman-c692f7a18b0dc49aace5eddc61072667d25d6dc7.tar.gz
podman-c692f7a18b0dc49aace5eddc61072667d25d6dc7.tar.bz2
podman-c692f7a18b0dc49aace5eddc61072667d25d6dc7.zip
Remove unused code from libpod
The libpod package should only compile on linux. The remote client should never try to import this package. Since these files do not add any value we should remove them, this prevents people from accidentally importing this package because it would fail to compile on windows/macos. [NO TESTS NEEDED] Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'libpod/util_unsupported.go')
-rw-r--r--libpod/util_unsupported.go34
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
-}