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:
parent
b26b8d17eb
commit
da1dbb52e4
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue