diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2023-05-06 01:58:22 +0200 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2023-05-06 16:36:17 +0200 |
commit | 55608d838167e22010b666f929285efe26fba489 (patch) | |
tree | 6bc647ce1fae56fa74530dd7496783a567cbeb4f | |
parent | a3b12ec4202e16a89ae57e2d4945ba0f1749d967 (diff) | |
download | docker-55608d838167e22010b666f929285efe26fba489.tar.gz |
pkg/system: remove deprecated IsProcessAlive, IsProcessZombie, KillProcess
These were deprecated in 9d5e754caad0af212545b352e19c3085d8df3281, 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/process/process_windows.go | 7 | ||||
-rw-r--r-- | pkg/system/process_deprecated.go | 27 |
2 files changed, 0 insertions, 34 deletions
diff --git a/pkg/process/process_windows.go b/pkg/process/process_windows.go index 26158d09ec..2dd57e8254 100644 --- a/pkg/process/process_windows.go +++ b/pkg/process/process_windows.go @@ -43,10 +43,3 @@ func Kill(pid int) error { } return nil } - -// Zombie is not supported on Windows. -// -// TODO(thaJeztah): remove once we remove the stubs from pkg/system. -func Zombie(_ int) (bool, error) { - return false, nil -} diff --git a/pkg/system/process_deprecated.go b/pkg/system/process_deprecated.go deleted file mode 100644 index 7b9f19acd5..0000000000 --- a/pkg/system/process_deprecated.go +++ /dev/null @@ -1,27 +0,0 @@ -//go:build linux || freebsd || darwin || windows -// +build linux freebsd darwin windows - -package system - -import "github.com/docker/docker/pkg/process" - -var ( - // IsProcessAlive returns true if process with a given pid is running. - // - // Deprecated: use [process.Alive]. - IsProcessAlive = process.Alive - - // IsProcessZombie return true if process has a state with "Z" - // - // Deprecated: use [process.Zombie]. - // - // TODO(thaJeztah): remove the Windows implementation in process once we remove this stub. - IsProcessZombie = process.Zombie -) - -// KillProcess force-stops a process. -// -// Deprecated: use [process.Kill]. -func KillProcess(pid int) { - _ = process.Kill(pid) -} |