From 21a720e026368c5d1c1c55e89cd5630428a6eeb5 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sat, 13 Jan 2018 19:27:25 +0100 Subject: [PATCH] Removed deprecated search function from ISearch Signed-off-by: Roeland Jago Douma --- lib/private/Search.php | 11 ----------- lib/public/ISearch.php | 10 ---------- 2 files changed, 21 deletions(-) diff --git a/lib/private/Search.php b/lib/private/Search.php index 17958c8e08..0cfdf24ac9 100644 --- a/lib/private/Search.php +++ b/lib/private/Search.php @@ -37,17 +37,6 @@ class Search implements ISearch { private $providers = array(); private $registeredProviders = array(); - /** - * Search all providers for $query - * @param string $query - * @param string[] $inApps optionally limit results to the given apps - * @return array An array of OC\Search\Result's - */ - public function search($query, array $inApps = array()) { - // old apps might assume they get all results, so we set size 0 - return $this->searchPaged($query, $inApps, 1, 0); - } - /** * Search all providers for $query * @param string $query diff --git a/lib/public/ISearch.php b/lib/public/ISearch.php index 93dc3b9c1f..001c847a9e 100644 --- a/lib/public/ISearch.php +++ b/lib/public/ISearch.php @@ -33,16 +33,6 @@ namespace OCP; */ interface ISearch { - /** - * Search all providers for $query - * @param string $query - * @param string[] $inApps optionally limit results to the given apps - * @return array An array of OCP\Search\Result's - * @deprecated 8.0.0 use searchPaged() with page and size - * @since 7.0.0 - parameter $inApps was added in 8.0.0 - */ - public function search($query, array $inApps = array()); - /** * Search all providers for $query * @param string $query