From 0433def57d3ee88a36bf48a3843e7e5853bcdcc5 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 21 Jul 2025 13:07:14 +0200 Subject: [PATCH] internal/platform: remove NumProcs() stub for Linux Follow-up to 04618dfc0bbe868490b9937bda6f726348be8fc6, which removed the pkg/platform package, but forgot to remove the stub. Signed-off-by: Sebastiaan van Stijn --- internal/platform/platform_unix.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/internal/platform/platform_unix.go b/internal/platform/platform_unix.go index 50b401c9e9..5e5f649241 100644 --- a/internal/platform/platform_unix.go +++ b/internal/platform/platform_unix.go @@ -14,12 +14,3 @@ func runtimeArchitecture() (string, error) { } return unix.ByteSliceToString(utsname.Machine[:]), nil } - -// NumProcs returns the number of processors on the system -// -// Deprecated: temporary stub for non-Windows to provide an alias for the deprecated github.com/docker/docker/pkg/platform package. -// -// FIXME(thaJeztah): remove once we remove github.com/docker/docker/pkg/platform -func NumProcs() uint32 { - return 0 -}