diff options
author | Robin Appelman <robin@icewind.nl> | 2022-02-01 13:49:17 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-02-09 16:04:19 +0100 |
commit | 6907bd67c7a5b2830c4666053c51f65ae55516cf (patch) | |
tree | 2c4ceb1b4210fef10b5047b91cdaf5aa1d20ae77 /apps/files_external/lib/MountConfig.php | |
parent | 17e7a7ba17da9420a4dee66fdc78df50ef80105f (diff) | |
download | nextcloud-server-6907bd67c7a5b2830c4666053c51f65ae55516cf.tar.gz nextcloud-server-6907bd67c7a5b2830c4666053c51f65ae55516cf.zip |
remove old legacy external storage migration logic
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/lib/MountConfig.php')
-rw-r--r-- | apps/files_external/lib/MountConfig.php | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/apps/files_external/lib/MountConfig.php b/apps/files_external/lib/MountConfig.php index aa3b662e224..a95ea01add9 100644 --- a/apps/files_external/lib/MountConfig.php +++ b/apps/files_external/lib/MountConfig.php @@ -47,6 +47,7 @@ use OCA\Files_External\Service\GlobalStoragesService; use OCA\Files_External\Service\UserGlobalStoragesService; use OCA\Files_External\Service\UserStoragesService; use OCP\Files\StorageNotAvailableException; +use OCP\IUser; use phpseclib\Crypt\AES; /** @@ -145,29 +146,6 @@ class MountConfig { } /** - * Read the mount points in the config file into an array - * - * @param string|null $user If not null, personal for $user, otherwise system - * @return array - */ - public static function readData($user = null) { - if (isset($user)) { - $jsonFile = \OC::$server->getUserManager()->get($user)->getHome() . '/mount.json'; - } else { - $config = \OC::$server->getConfig(); - $datadir = $config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data/'); - $jsonFile = $config->getSystemValue('mount_file', $datadir . '/mount.json'); - } - if (is_file($jsonFile)) { - $mountPoints = json_decode(file_get_contents($jsonFile), true); - if (is_array($mountPoints)) { - return $mountPoints; - } - } - return []; - } - - /** * Get backend dependency message * TODO: move into AppFramework along with templates * |