From da1dbb52e42fd1acb398a0f223e1630d777a8c3c Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 7 Mar 2016 12:27:31 +0100 Subject: 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. --- lib/private/Share20/DefaultShareProvider.php | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'lib/private/Share20/DefaultShareProvider.php') 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 @@ -770,30 +770,6 @@ class DefaultShareProvider implements IShareProvider { return $share; } - /** - * 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. -- cgit v1.2.3