Selaa lähdekoodia

pkg/system: remove deprecated ErrNotSupportedOperatingSystem, IsOSSupported

These were deprecated in a3c97beee0b0ed645a41e49cb85256c491551f74 (v25.0.0),
and are no longer used.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 1 vuosi sitten
vanhempi
commit
f16a2179a6
1 muutettua tiedostoa jossa 0 lisäystä ja 19 poistoa
  1. 0 19
      pkg/system/image_os_deprecated.go

+ 0 - 19
pkg/system/image_os_deprecated.go

@@ -1,19 +0,0 @@
-package system
-
-import (
-	"errors"
-	"runtime"
-	"strings"
-)
-
-// ErrNotSupportedOperatingSystem means the operating system is not supported.
-//
-// Deprecated: use [github.com/docker/docker/image.CheckOS] and check the error returned.
-var ErrNotSupportedOperatingSystem = errors.New("operating system is not supported")
-
-// IsOSSupported determines if an operating system is supported by the host.
-//
-// Deprecated: use [github.com/docker/docker/image.CheckOS] and check the error returned.
-func IsOSSupported(os string) bool {
-	return strings.EqualFold(runtime.GOOS, os)
-}