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.
This commit is contained in:
Roeland Jago Douma 2016-03-07 12:27:31 +01:00
parent b26b8d17eb
commit da1dbb52e4
1 changed files with 0 additions and 24 deletions

View File

@ -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.