Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
f771205f
Unverified
Commit
f771205f
authored
4 years ago
by
Morris Jobke
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused and deprecated methods from files_external MountConfig
Signed-off-by:
Morris Jobke
<
hey@morrisjobke.de
>
parent
f23c2162
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/files_external/lib/MountConfig.php
+0
-49
0 additions, 49 deletions
apps/files_external/lib/MountConfig.php
with
0 additions
and
49 deletions
apps/files_external/lib/MountConfig.php
+
0
−
49
View file @
f771205f
...
@@ -43,10 +43,7 @@ namespace OCA\Files_External;
...
@@ -43,10 +43,7 @@ namespace OCA\Files_External;
use
OCA\Files_External
\AppInfo\Application
;
use
OCA\Files_External
\AppInfo\Application
;
use
OCA\Files_External
\Config\IConfigHandler
;
use
OCA\Files_External
\Config\IConfigHandler
;
use
OCA\Files_External
\Config\UserContext
;
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\Backend
;
use
OCA\Files_External
\Lib\Backend\LegacyBackend
;
use
OCA\Files_External
\Lib\StorageConfig
;
use
OCA\Files_External
\Lib\StorageConfig
;
use
OCA\Files_External
\Service\BackendService
;
use
OCA\Files_External
\Service\BackendService
;
use
OCA\Files_External
\Service\GlobalStoragesService
;
use
OCA\Files_External
\Service\GlobalStoragesService
;
...
@@ -73,21 +70,6 @@ class MountConfig {
...
@@ -73,21 +70,6 @@ class MountConfig {
/** @var Application */
/** @var Application */
public
static
$app
;
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.
* Returns the mount points for the given user.
* The mount point is relative to the data directory.
* The mount point is relative to the data directory.
...
@@ -150,24 +132,6 @@ class MountConfig {
...
@@ -150,24 +132,6 @@ class MountConfig {
return
$mountPoints
;
return
$mountPoints
;
}
}
/**
* 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
* 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
* There's a lot of extra information in here, to satisfy all of the legacy functions
...
@@ -201,19 +165,6 @@ class MountConfig {
...
@@ -201,19 +165,6 @@ class MountConfig {
return
$mountEntry
;
return
$mountEntry
;
}
}
/**
* 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 mixed $input
* @param string|null $userId
* @param string|null $userId
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment