From c46f701771db9285e70a5b1d5a4b641046bf703c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 31 Jan 2012 16:12:49 +0100 Subject: use filesystem cache for searching --- lib/filesystemview.php | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'lib/filesystemview.php') diff --git a/lib/filesystemview.php b/lib/filesystemview.php index 9687a8bceb4..6c2ca916310 100644 --- a/lib/filesystemview.php +++ b/lib/filesystemview.php @@ -279,23 +279,6 @@ class OC_FilesystemView { return $this->basicOperation('free_space',$path); } - public function search($query){ - $files=array(); - $fakeRoot=$this->$fakeRoot; - $fakeRootLength=strlen($fakeRoot); - $results=OC_FileCache::search($query); - if(is_array($results)){ - foreach($results as $result){ - $file=str_replace('//','/',$mountpoint.$result); - if(substr($file,0,$fakeRootLength)==$fakeRoot){ - $file=substr($file,$fakeRootLength); - $files[]=$file; - } - } - } - return $files; - } - /** * abstraction for running most basic operations * @param string $operation -- cgit v1.2.3