aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-09-16 18:00:47 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-09-16 18:11:38 +0200
commited0ac284e3e56e77f68594b834e4f04abe7ad846 (patch)
treea7029ccdc6f68205816250b531f24b45c9cc60c4
parent5d01e0a73c9e27cdec7e51e22ed32707ffca7170 (diff)
downloadnextcloud-server-ed0ac284e3e56e77f68594b834e4f04abe7ad846.tar.gz
nextcloud-server-ed0ac284e3e56e77f68594b834e4f04abe7ad846.zip
chore: Remove deprecated Storage::search method instead of moving it to IStorage
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--lib/private/Files/Storage/Common.php4
-rw-r--r--lib/private/Files/Storage/Wrapper/Encoding.php10
-rw-r--r--lib/private/Files/Storage/Wrapper/Jail.php10
-rw-r--r--lib/private/Files/Storage/Wrapper/Wrapper.php10
-rw-r--r--lib/public/Files/Storage/IStorage.php9
5 files changed, 0 insertions, 43 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php
index fa8521790f3..80e39fa9b93 100644
--- a/lib/private/Files/Storage/Common.php
+++ b/lib/private/Files/Storage/Common.php
@@ -232,10 +232,6 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage {
return hash_final($ctx, $raw);
}
- public function search($query) {
- return $this->searchInDir($query);
- }
-
public function getLocalFile($path) {
return $this->getCachedFile($path);
}
diff --git a/lib/private/Files/Storage/Wrapper/Encoding.php b/lib/private/Files/Storage/Wrapper/Encoding.php
index 11f21eb828e..a696a3e4802 100644
--- a/lib/private/Files/Storage/Wrapper/Encoding.php
+++ b/lib/private/Files/Storage/Wrapper/Encoding.php
@@ -382,16 +382,6 @@ class Encoding extends Wrapper {
}
/**
- * 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
* If the backend does not support the operation, false should be returned
*
diff --git a/lib/private/Files/Storage/Wrapper/Jail.php b/lib/private/Files/Storage/Wrapper/Jail.php
index 2e8306dc705..5673caf834a 100644
--- a/lib/private/Files/Storage/Wrapper/Jail.php
+++ b/lib/private/Files/Storage/Wrapper/Jail.php
@@ -322,16 +322,6 @@ class Jail extends Wrapper {
}
/**
- * 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
* If the backend does not support the operation, false should be returned
*
diff --git a/lib/private/Files/Storage/Wrapper/Wrapper.php b/lib/private/Files/Storage/Wrapper/Wrapper.php
index f8aa9d963dc..f0420f4f16a 100644
--- a/lib/private/Files/Storage/Wrapper/Wrapper.php
+++ b/lib/private/Files/Storage/Wrapper/Wrapper.php
@@ -317,16 +317,6 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
}
/**
- * 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
* If the backend does not support the operation, false should be returned
*
diff --git a/lib/public/Files/Storage/IStorage.php b/lib/public/Files/Storage/IStorage.php
index 08e58be5422..e009f2b6fae 100644
--- a/lib/public/Files/Storage/IStorage.php
+++ b/lib/public/Files/Storage/IStorage.php
@@ -280,15 +280,6 @@ interface IStorage {
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
* If the backend does not support the operation, false should be returned
*