diff --git a/lib/file.php b/lib/file.php index 6ec450ea..8e48996e 100644 --- a/lib/file.php +++ b/lib/file.php @@ -220,16 +220,6 @@ class File { return $result; } - - protected function getLocalFileOwnerAndPath(){ - $fileInfo = \OC\Files\Cache\Cache::getById($this->fileId); - $owner = \OCP\User::getUser(); - if (!$owner){ - throw new Exception('Guest users can\'t access local files. This one was probably unshared recently.'); - } - - return array ($owner, @$fileInfo[1]); - } protected function getPassword(){ return $this->sharing[0]['share_with'];