Browse Source

Merge pull request #7842 from nextcloud/dep_isearch

Removed deprecated search function from ISearch
pull/7854/head
Morris Jobke 8 years ago
committed by GitHub
parent
commit
a2678d56aa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      lib/private/Search.php
  2. 10
      lib/public/ISearch.php

11
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

10
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

Loading…
Cancel
Save