From 1453263b636b4902184573109f8038a8da6ccb4a Mon Sep 17 00:00:00 2001 From: chrislu Date: Thu, 13 Jan 2022 02:02:04 -0800 Subject: [PATCH] remove dead code --- weed/filer/permission.go | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 weed/filer/permission.go diff --git a/weed/filer/permission.go b/weed/filer/permission.go deleted file mode 100644 index 0d8b8292b..000000000 --- a/weed/filer/permission.go +++ /dev/null @@ -1,22 +0,0 @@ -package filer - -func hasWritePermission(dir *Entry, entry *Entry) bool { - - if dir == nil { - return false - } - - if dir.Uid == entry.Uid && dir.Mode&0200 > 0 { - return true - } - - if dir.Gid == entry.Gid && dir.Mode&0020 > 0 { - return true - } - - if dir.Mode&0002 > 0 { - return true - } - - return false -}