Sfoglia il codice sorgente

pkg/idtools: remove unused CanAccess() stub for Windows

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 2 anni fa
parent
commit
1fccb39316
1 ha cambiato i file con 0 aggiunte e 7 eliminazioni
  1. 0 7
      pkg/idtools/idtools_windows.go

+ 0 - 7
pkg/idtools/idtools_windows.go

@@ -22,10 +22,3 @@ const (
 func mkdirAs(path string, _ os.FileMode, _ Identity, _, _ bool) error {
 	return system.MkdirAll(path, 0)
 }
-
-// CanAccess takes a valid (existing) directory and a uid, gid pair and determines
-// if that uid, gid pair has access (execute bit) to the directory
-// Windows does not require/support this function, so always return true
-func CanAccess(path string, identity Identity) bool {
-	return true
-}