chore: Remove deprecated Storage::search method instead of moving it to IStorage

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/48009/head
Côme Chilliet 2024-09-16 18:00:47 +07:00
parent 5d01e0a73c
commit ed0ac284e3
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
5 changed files with 0 additions and 43 deletions

@ -232,10 +232,6 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage {
return hash_final($ctx, $raw); return hash_final($ctx, $raw);
} }
public function search($query) {
return $this->searchInDir($query);
}
public function getLocalFile($path) { public function getLocalFile($path) {
return $this->getCachedFile($path); return $this->getCachedFile($path);
} }

@ -381,16 +381,6 @@ class Encoding extends Wrapper {
return $this->storage->free_space($this->findPathToUse($path)); return $this->storage->free_space($this->findPathToUse($path));
} }
/**
* search for occurrences of $query in file names
*
* @param string $query
* @return array|bool
*/
public function search($query) {
return $this->storage->search($query);
}
/** /**
* see https://www.php.net/manual/en/function.touch.php * see https://www.php.net/manual/en/function.touch.php
* If the backend does not support the operation, false should be returned * If the backend does not support the operation, false should be returned

@ -321,16 +321,6 @@ class Jail extends Wrapper {
return $this->getWrapperStorage()->free_space($this->getUnjailedPath($path)); return $this->getWrapperStorage()->free_space($this->getUnjailedPath($path));
} }
/**
* search for occurrences of $query in file names
*
* @param string $query
* @return array|bool
*/
public function search($query) {
return $this->getWrapperStorage()->search($query);
}
/** /**
* see https://www.php.net/manual/en/function.touch.php * see https://www.php.net/manual/en/function.touch.php
* If the backend does not support the operation, false should be returned * If the backend does not support the operation, false should be returned

@ -316,16 +316,6 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
return $this->getWrapperStorage()->free_space($path); return $this->getWrapperStorage()->free_space($path);
} }
/**
* search for occurrences of $query in file names
*
* @param string $query
* @return array|bool
*/
public function search($query) {
return $this->getWrapperStorage()->search($query);
}
/** /**
* see https://www.php.net/manual/en/function.touch.php * see https://www.php.net/manual/en/function.touch.php
* If the backend does not support the operation, false should be returned * If the backend does not support the operation, false should be returned

@ -279,15 +279,6 @@ interface IStorage {
*/ */
public function free_space($path); public function free_space($path);
/**
* search for occurrences of $query in file names
*
* @param string $query
* @return array|bool
* @since 6.0.0
*/
public function search($query);
/** /**
* see https://www.php.net/manual/en/function.touch.php * see https://www.php.net/manual/en/function.touch.php
* If the backend does not support the operation, false should be returned * If the backend does not support the operation, false should be returned