فهرست منبع

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

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 2 سال پیش
والد
کامیت
1fccb39316
1فایلهای تغییر یافته به همراه0 افزوده شده و 7 حذف شده
  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 {
 func mkdirAs(path string, _ os.FileMode, _ Identity, _, _ bool) error {
 	return system.MkdirAll(path, 0)
 	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
-}