From 442d4ed24a713cf5f9fc582ca284b0b740940c6b Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 29 Aug 2017 13:37:13 +0200 Subject: [PATCH] Use the FailedStorage instead Signed-off-by: Morris Jobke --- .../lib/Lib/Backend/InvalidBackend.php | 2 +- .../lib/Lib/Storage/InvalidStorage.php | 30 ------------------- 2 files changed, 1 insertion(+), 31 deletions(-) delete mode 100644 apps/files_external/lib/Lib/Storage/InvalidStorage.php diff --git a/apps/files_external/lib/Lib/Backend/InvalidBackend.php b/apps/files_external/lib/Lib/Backend/InvalidBackend.php index 1a426c4bbb7..c3c5ca0cac7 100644 --- a/apps/files_external/lib/Lib/Backend/InvalidBackend.php +++ b/apps/files_external/lib/Lib/Backend/InvalidBackend.php @@ -40,7 +40,7 @@ class InvalidBackend extends Backend { $this->invalidId = $invalidId; $this ->setIdentifier($invalidId) - ->setStorageClass('\OCA\Files_External\Lib\Storage\InvalidStorage') + ->setStorageClass('\OC\Files\Storage\FailedStorage') ->setText('Unknown storage backend ' . $invalidId) ; } diff --git a/apps/files_external/lib/Lib/Storage/InvalidStorage.php b/apps/files_external/lib/Lib/Storage/InvalidStorage.php deleted file mode 100644 index bc4ecee8369..00000000000 --- a/apps/files_external/lib/Lib/Storage/InvalidStorage.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * @copyright Copyright (c) 2016, ownCloud GmbH. - * @license AGPL-3.0 - * - * This code is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License, version 3, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License, version 3, - * along with this program. If not, see - * - */ - -namespace OCA\Files_External\Lib\Storage; - -use OCP\Files\StorageNotAvailableException; - -class InvalidStorage { - public function __construct($params) { - throw new StorageNotAvailableException(); - } -}