Browse Source

Merge pull request #42173 from thaJeztah/unused_errors

Brian Goff 4 năm trước cách đây
mục cha
commit
1ff685085a

+ 0 - 10
libcontainerd/local/local_windows.go

@@ -61,16 +61,6 @@ type container struct {
 	terminateInvoked bool
 	terminateInvoked bool
 }
 }
 
 
-// Win32 error codes that are used for various workarounds
-// These really should be ALL_CAPS to match golangs syscall library and standard
-// Win32 error conventions, but golint insists on CamelCase.
-const (
-	CoEClassstring     = syscall.Errno(0x800401F3) // Invalid class string
-	ErrorNoNetwork     = syscall.Errno(1222)       // The network is not present or not started
-	ErrorBadPathname   = syscall.Errno(161)        // The specified path is invalid
-	ErrorInvalidObject = syscall.Errno(0x800710D8) // The object identifier does not represent a valid object
-)
-
 // defaultOwner is a tag passed to HCS to allow it to differentiate between
 // defaultOwner is a tag passed to HCS to allow it to differentiate between
 // container creator management stacks. We hard code "docker" in the case
 // container creator management stacks. We hard code "docker" in the case
 // of docker.
 // of docker.

+ 0 - 5
libcontainerd/remote/client_windows.go

@@ -16,11 +16,6 @@ import (
 	"github.com/sirupsen/logrus"
 	"github.com/sirupsen/logrus"
 )
 )
 
 
-const (
-	runtimeName       = "io.containerd.runhcs.v1"
-	shimV2RuntimeName = runtimeName
-)
-
 func summaryFromInterface(i interface{}) (*libcontainerdtypes.Summary, error) {
 func summaryFromInterface(i interface{}) (*libcontainerdtypes.Summary, error) {
 	switch pd := i.(type) {
 	switch pd := i.(type) {
 	case *options.ProcessDetails:
 	case *options.ProcessDetails: