summaryrefslogtreecommitdiffstats
path: root/lib/private/files/node/root.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-08-05 16:58:10 +0200
committerRobin Appelman <icewind@owncloud.com>2014-08-05 16:58:10 +0200
commitbf8f910a32ca20d9d2cdadfec9f46694b9a53190 (patch)
treedd9452b7667ebb37437a7ef02b4d56d7abf6ef49 /lib/private/files/node/root.php
parent54030f4eefa751478b64b277614c0db89435f18f (diff)
downloadnextcloud-server-bf8f910a32ca20d9d2cdadfec9f46694b9a53190.tar.gz
nextcloud-server-bf8f910a32ca20d9d2cdadfec9f46694b9a53190.zip
Fix Folder::getById
Diffstat (limited to 'lib/private/files/node/root.php')
-rw-r--r--lib/private/files/node/root.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/private/files/node/root.php b/lib/private/files/node/root.php
index 70135285b0d..2172d474efb 100644
--- a/lib/private/files/node/root.php
+++ b/lib/private/files/node/root.php
@@ -169,32 +169,6 @@ class Root extends Folder implements Emitter {
}
}
- /**
- * search file by id
- *
- * An array is returned because in the case where a single storage is mounted in different places the same file
- * can exist in different places
- *
- * @param int $id
- * @throws \OCP\Files\NotFoundException
- * @return Node[]
- */
- public function getById($id) {
- $result = Cache::getById($id);
- if (is_null($result)) {
- throw new NotFoundException();
- } else {
- list($storageId, $internalPath) = $result;
- $nodes = array();
- $mounts = $this->mountManager->findByStorageId($storageId);
- foreach ($mounts as $mount) {
- $nodes[] = $this->get($mount->getMountPoint() . $internalPath);
- }
- return $nodes;
- }
-
- }
-
//most operations cant be done on the root
/**