浏览代码

Merge pull request #47129 from thaJeztah/pkg_system_deprecated

pkg/system: remove deprecated ErrNotSupportedOperatingSystem, IsOSSupported
Akihiro Suda 1 年之前
父节点
当前提交
570b8a794c
共有 1 个文件被更改,包括 0 次插入19 次删除
  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)
-}