aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-10 21:11:06 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-11-10 22:38:10 +0100
commitf771205f5fb2aa80f7c5294d5dbe1126fa829ec3 (patch)
tree584ffd465a280f5698c63562ed402c6490be6e76 /apps/files_external
parentf23c2162ad2d2883f08cc88c600a7d2ed4bd8a93 (diff)
downloadnextcloud-server-f771205f5fb2aa80f7c5294d5dbe1126fa829ec3.tar.gz
nextcloud-server-f771205f5fb2aa80f7c5294d5dbe1126fa829ec3.zip
Remove unused and deprecated methods from files_external MountConfig
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/MountConfig.php49
1 files changed, 0 insertions, 49 deletions
diff --git a/apps/files_external/lib/MountConfig.php b/apps/files_external/lib/MountConfig.php
index 0257123b119..425fcd1b326 100644
--- a/apps/files_external/lib/MountConfig.php
+++ b/apps/files_external/lib/MountConfig.php
@@ -43,10 +43,7 @@ namespace OCA\Files_External;
use OCA\Files_External\AppInfo\Application;
use OCA\Files_External\Config\IConfigHandler;
use OCA\Files_External\Config\UserContext;
-use OCA\Files_External\Config\UserPlaceholderHandler;
-use OCA\Files_External\Lib\Auth\Builtin;
use OCA\Files_External\Lib\Backend\Backend;
-use OCA\Files_External\Lib\Backend\LegacyBackend;
use OCA\Files_External\Lib\StorageConfig;
use OCA\Files_External\Service\BackendService;
use OCA\Files_External\Service\GlobalStoragesService;
@@ -74,21 +71,6 @@ class MountConfig {
public static $app;
/**
- * @param string $class
- * @param array $definition
- * @return bool
- * @deprecated 8.2.0 use \OCA\Files_External\Service\BackendService::registerBackend()
- */
- public static function registerBackend($class, $definition) {
- $backendService = self::$app->getContainer()->query(BackendService::class);
- $auth = self::$app->getContainer()->query(Builtin::class);
-
- $backendService->registerBackend(new LegacyBackend($class, $definition, $auth));
-
- return true;
- }
-
- /**
* Returns the mount points for the given user.
* The mount point is relative to the data directory.
*
@@ -151,24 +133,6 @@ class MountConfig {
}
/**
- * Get the personal mount points of the current user
- *
- * @return array
- *
- * @deprecated 8.2.0 use UserStoragesService::getStorages()
- */
- public static function getPersonalMountPoints() {
- $mountPoints = [];
- $service = self::$app->getContainer()->query(UserStoragesService::class);
-
- foreach ($service->getStorages() as $storage) {
- $mountPoints[] = self::prepareMountPointEntry($storage, true);
- }
-
- return $mountPoints;
- }
-
- /**
* Convert a StorageConfig to the legacy mountPoints array format
* There's a lot of extra information in here, to satisfy all of the legacy functions
*
@@ -202,19 +166,6 @@ class MountConfig {
}
/**
- * fill in the correct values for $user
- *
- * @param string $user user value
- * @param string|array $input
- * @return string
- * @deprecated use self::substitutePlaceholdersInConfig($input)
- */
- public static function setUserVars($user, $input) {
- $handler = self::$app->getContainer()->query(UserPlaceholderHandler::class);
- return $handler->handle($input);
- }
-
- /**
* @param mixed $input
* @param string|null $userId
* @return mixed