From fb76d7de69e0f13f196a644cfded0a6e079e7200 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 5 Feb 2016 16:48:08 +0100 Subject: remove unused Storage->getLocalFolder --- lib/private/files/storage/common.php | 6 ------ lib/private/files/storage/wrapper/availability.php | 11 ----------- lib/private/files/storage/wrapper/jail.php | 11 ----------- lib/private/files/storage/wrapper/wrapper.php | 11 ----------- 4 files changed, 39 deletions(-) (limited to 'lib/private/files/storage') diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php index 7d8d9ebd25e..3d5898dcd80 100644 --- a/lib/private/files/storage/common.php +++ b/lib/private/files/storage/common.php @@ -248,12 +248,6 @@ abstract class Common implements Storage, ILockingStorage { return $this->getCachedFile($path); } - public function getLocalFolder($path) { - $baseDir = \OC::$server->getTempManager()->getTemporaryFolder(); - $this->addLocalFolder($path, $baseDir); - return $baseDir; - } - /** * @param string $path * @param string $target diff --git a/lib/private/files/storage/wrapper/availability.php b/lib/private/files/storage/wrapper/availability.php index 1550c318ce3..55ddb0d5e8f 100644 --- a/lib/private/files/storage/wrapper/availability.php +++ b/lib/private/files/storage/wrapper/availability.php @@ -376,17 +376,6 @@ class Availability extends Wrapper { } } - /** {@inheritdoc} */ - public function getLocalFolder($path) { - $this->checkAvailability(); - try { - return parent::getLocalFolder($path); - } catch (\OCP\Files\StorageNotAvailableException $e) { - $this->setAvailability(false); - throw $e; - } - } - /** {@inheritdoc} */ public function hasUpdated($path, $time) { $this->checkAvailability(); diff --git a/lib/private/files/storage/wrapper/jail.php b/lib/private/files/storage/wrapper/jail.php index 40738befd93..e5f5ab90359 100644 --- a/lib/private/files/storage/wrapper/jail.php +++ b/lib/private/files/storage/wrapper/jail.php @@ -352,17 +352,6 @@ class Jail extends Wrapper { return $this->storage->getLocalFile($this->getSourcePath($path)); } - /** - * get the path to a local version of the folder. - * The local version of the folder can be temporary and doesn't have to be persistent across requests - * - * @param string $path - * @return string - */ - public function getLocalFolder($path) { - return $this->storage->getLocalFolder($this->getSourcePath($path)); - } - /** * check if a file or folder has been updated since $time * diff --git a/lib/private/files/storage/wrapper/wrapper.php b/lib/private/files/storage/wrapper/wrapper.php index c632aa399e1..12914e7a1b8 100644 --- a/lib/private/files/storage/wrapper/wrapper.php +++ b/lib/private/files/storage/wrapper/wrapper.php @@ -353,17 +353,6 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage { return $this->storage->getLocalFile($path); } - /** - * get the path to a local version of the folder. - * The local version of the folder can be temporary and doesn't have to be persistent across requests - * - * @param string $path - * @return string - */ - public function getLocalFolder($path) { - return $this->storage->getLocalFolder($path); - } - /** * check if a file or folder has been updated since $time * -- cgit v1.2.3