From bf8f910a32ca20d9d2cdadfec9f46694b9a53190 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 5 Aug 2014 16:58:10 +0200 Subject: Fix Folder::getById --- lib/private/files/node/root.php | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'lib/private/files/node/root.php') 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 /** -- cgit v1.2.3