Skip to content

Commit

Permalink
chore: Remove deprecated legacy search backend
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Jun 18, 2024
1 parent 74396a2 commit d01fa2e
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 229 deletions.
5 changes: 0 additions & 5 deletions apps/files/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ public function register(IRegistrationContext $context): void {
public function boot(IBootContext $context): void {
$context->injectFn(Closure::fromCallable([$this, 'registerCollaboration']));
$context->injectFn([Listener::class, 'register']);
$context->injectFn(Closure::fromCallable([$this, 'registerSearchProvider']));
$this->registerTemplates();
$this->registerHooks();
}
Expand All @@ -127,10 +126,6 @@ private function registerCollaboration(IProviderManager $providerManager): void
$providerManager->registerResourceProvider(ResourceProvider::class);
}

private function registerSearchProvider(ISearch $search): void {
$search->registerProvider(File::class, ['apps' => ['files']]);
}

private function registerTemplates(): void {
$templateManager = \OC_Helper::getFileTemplateManager();
$templateManager->registerTemplate('application/vnd.oasis.opendocument.presentation', 'core/templates/filetemplates/template.odp');
Expand Down
47 changes: 0 additions & 47 deletions core/Controller/SearchController.php

This file was deleted.

100 changes: 0 additions & 100 deletions lib/private/Search.php

This file was deleted.

15 changes: 0 additions & 15 deletions lib/private/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@
use OCP\IPreview;
use OCP\IRequest;
use OCP\IRequestId;
use OCP\ISearch;
use OCP\IServerContainer;
use OCP\ISession;
use OCP\ITagManager;
Expand Down Expand Up @@ -762,10 +761,6 @@ public function __construct($webRoot, \OC\Config $config) {
/** @deprecated 19.0.0 */
$this->registerDeprecatedAlias('Router', IRouter::class);

$this->registerAlias(ISearch::class, Search::class);
/** @deprecated 19.0.0 */
$this->registerDeprecatedAlias('Search', ISearch::class);

$this->registerService(\OC\Security\RateLimiting\Backend\IBackend::class, function ($c) {
$config = $c->get(\OCP\IConfig::class);
if (ltrim($config->getSystemValueString('memcache.distributed', ''), '\\') === \OC\Memcache\Redis::class) {
Expand Down Expand Up @@ -1797,16 +1792,6 @@ public function getRouter() {
return $this->get(IRouter::class);
}

/**
* Returns a search instance
*
* @return ISearch
* @deprecated 20.0.0
*/
public function getSearch() {
return $this->get(ISearch::class);
}

/**
* Returns a SecureRandom instance
*
Expand Down
51 changes: 0 additions & 51 deletions lib/public/ISearch.php

This file was deleted.

9 changes: 0 additions & 9 deletions lib/public/IServerContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,15 +343,6 @@ public function getLogFactory();
*/
public function getRouter();

/**
* Returns a search instance
*
* @return \OCP\ISearch
* @since 7.0.0
* @deprecated 20.0.0
*/
public function getSearch();

/**
* Get the certificate manager
*
Expand Down
2 changes: 0 additions & 2 deletions tests/lib/ServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ public function dataTestQuery() {
['RootFolder', '\OCP\Files\Folder'],
['Router', '\OCP\Route\IRouter'],

['Search', '\OC\Search'],
['Search', '\OCP\ISearch'],
['SecureRandom', '\OC\Security\SecureRandom'],
['SecureRandom', '\OCP\Security\ISecureRandom'],
['ShareManager', '\OC\Share20\Manager'],
Expand Down

0 comments on commit d01fa2e

Please sign in to comment.