pkg/platform: remove deprecated OSType const

This const was deprecated in 5c78cbd3be, 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>
This commit is contained in:
Sebastiaan van Stijn 2023-05-06 01:46:10 +02:00
parent 88f4bf4ae4
commit 152c482fee
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -3,8 +3,6 @@
package platform // import "github.com/docker/docker/pkg/platform"
import (
"runtime"
"github.com/sirupsen/logrus"
)
@ -17,12 +15,6 @@ import (
// when running a "linux/386" compiled binary on "linux/amd64" hardware.
var Architecture string
// OSType holds the runtime operating system type of the process. It is
// an alias for [runtime.GOOS].
//
// Deprecated: use [runtime.GOOS] instead.
const OSType = runtime.GOOS
func init() {
var err error
Architecture, err = runtimeArchitecture()