diff options
-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) -} |