summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2023-05-06 01:54:09 +0200
committerSebastiaan van Stijn <github@gone.nl>2023-05-06 16:36:17 +0200
commita3b12ec4202e16a89ae57e2d4945ba0f1749d967 (patch)
tree7190584d3da86b2d1d1161e96d3710b77f0058a1
parentdc76b907059adf9a44dccb3908839e56d357890e (diff)
downloaddocker-a3b12ec4202e16a89ae57e2d4945ba0f1749d967.tar.gz
pkg/system: remove deprecated DefaultPathEnv()
This was deprecated in 9f3e5eead5accb9fb405398af700d97e830a3b5b, which is part of the v24.0.0 release, so we can remove it from master. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
-rw-r--r--pkg/system/path_deprecated.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/pkg/system/path_deprecated.go b/pkg/system/path_deprecated.go
deleted file mode 100644
index 5c95026c3d..0000000000
--- a/pkg/system/path_deprecated.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package system
-
-const defaultUnixPathEnv = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
-
-// DefaultPathEnv is unix style list of directories to search for
-// executables. Each directory is separated from the next by a colon
-// ':' character .
-// For Windows containers, an empty string is returned as the default
-// path will be set by the container, and Docker has no context of what the
-// default path should be.
-//
-// Deprecated: use oci.DefaultPathEnv
-func DefaultPathEnv(os string) string {
- if os == "windows" {
- return ""
- }
- return defaultUnixPathEnv
-}