summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20/DefaultShareProvider.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-03-07 12:27:31 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-03-23 07:58:17 +0100
commitda1dbb52e42fd1acb398a0f223e1630d777a8c3c (patch)
treeba6e6a2964a15f965ea7411da5909f6fae66f3e6 /lib/private/Share20/DefaultShareProvider.php
parentb26b8d17ebcd843ddba35bf446f3f5a7655ee38d (diff)
downloadnextcloud-server-da1dbb52e42fd1acb398a0f223e1630d777a8c3c.tar.gz
nextcloud-server-da1dbb52e42fd1acb398a0f223e1630d777a8c3c.zip
Remove dead function
This was used when we did not have lazy shares yet. Now that we no longer support legacy shares this can go.
Diffstat (limited to 'lib/private/Share20/DefaultShareProvider.php')
-rw-r--r--lib/private/Share20/DefaultShareProvider.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php
index b5963e0e3c4..f6171f87992 100644
--- a/lib/private/Share20/DefaultShareProvider.php
+++ b/lib/private/Share20/DefaultShareProvider.php
@@ -771,30 +771,6 @@ class DefaultShareProvider implements IShareProvider {
}
/**
- * Get the node with file $id for $user
- *
- * @param string $user The userId
- * @param int $id
- * @return \OCP\Files\File|\OCP\Files\Folder
- * @throws InvalidShare
- */
- private function getNode($user, $id) {
- try {
- $userFolder = $this->rootFolder->getUserFolder($user);
- } catch (NotFoundException $e) {
- throw new InvalidShare();
- }
-
- $nodes = $userFolder->getById($id);
-
- if (empty($nodes)) {
- throw new InvalidShare();
- }
-
- return $nodes[0];
- }
-
- /**
* Resolve a group share to a user specific share
* Thus if the user moved their group share make sure this is properly reflected here.
*