Jelajahi Sumber

pkg/system: remove deprecated (and unused) windows consts

These consts were deprecated in 46c591b045a77b7f0f96f96a51d8304264685929, and
although that has not been in a release yet (we usually deprecate for at least
one release before removing), doing a search showed that there were no external
consumers of these consts, so it should be fine to remove them.

This patch removes the consts that were moded to pkg/idtools;

- SeTakeOwnershipPrivilege
- ContainerAdministratorSidString
- ContainerUserSidString

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 3 tahun lalu
induk
melakukan
85c4d633db
1 mengubah file dengan 0 tambahan dan 9 penghapusan
  1. 0 9
      pkg/system/syscall_windows.go

+ 0 - 9
pkg/system/syscall_windows.go

@@ -2,15 +2,6 @@ package system // import "github.com/docker/docker/pkg/system"
 
 import "golang.org/x/sys/windows"
 
-const (
-	// Deprecated: use github.com/docker/pkg/idtools.SeTakeOwnershipPrivilege
-	SeTakeOwnershipPrivilege = "SeTakeOwnershipPrivilege"
-	// Deprecated: use github.com/docker/pkg/idtools.ContainerAdministratorSidString
-	ContainerAdministratorSidString = "S-1-5-93-2-1"
-	// Deprecated: use github.com/docker/pkg/idtools.ContainerUserSidString
-	ContainerUserSidString = "S-1-5-93-2-2"
-)
-
 // VER_NT_WORKSTATION, see https://docs.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-osversioninfoexa
 const verNTWorkstation = 0x00000001 // VER_NT_WORKSTATION