From 4fad41db457f14b506bf2a7299184824092d0d01 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Tue, 11 Nov 2014 03:04:42 +0300 Subject: [PATCH] Remove method which is not used any longer --- lib/file.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/file.php b/lib/file.php index c43e5536..348e4cb9 100644 --- a/lib/file.php +++ b/lib/file.php @@ -125,22 +125,6 @@ class File { $this->passwordProtected = $value; } - public function getPermissions(){ - if ($this->isPublicShare()){ - $permissions = \OCP\PERMISSION_READ | \OCP\PERMISSION_UPDATE; - } else { - list($owner, $path) = $this->getOwnerViewAndPath(); - $permissions = 0; - if (\OC\Files\Filesystem::isReadable($path)){ - $permissions |= \OCP\PERMISSION_READ; - } - if (\OC\Files\Filesystem::isUpdatable($path)){ - $permissions |= \OCP\PERMISSION_UPDATE; - } - - } - return $permissions; - } /** *