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 <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Aug 1, 2024
1 parent c52b7e5 commit a6d421e
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 812 deletions.
3 changes: 0 additions & 3 deletions apps/comments/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use OCA\Comments\MaxAutoCompleteResultsInitialState;
use OCA\Comments\Notification\Notifier;
use OCA\Comments\Search\CommentsSearchProvider;
use OCA\Comments\Search\LegacyProvider;
use OCA\Files\Event\LoadAdditionalScriptsEvent;
use OCA\Files\Event\LoadSidebar;
use OCP\AppFramework\App;
Expand All @@ -22,7 +21,6 @@
use OCP\AppFramework\Bootstrap\IRegistrationContext;
use OCP\Comments\CommentsEntityEvent;
use OCP\Comments\CommentsEvent;
use OCP\ISearch;

class Application extends App implements IBootstrap {
public const APP_ID = 'comments';
Expand Down Expand Up @@ -59,6 +57,5 @@ public function register(IRegistrationContext $context): void {
}

public function boot(IBootContext $context): void {
$context->getServerContainer()->get(ISearch::class)->registerProvider(LegacyProvider::class, ['apps' => ['files']]);
}
}
7 changes: 0 additions & 7 deletions apps/files/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
namespace OCA\Files\AppInfo;

use Closure;
use OC\Search\Provider\File;
use OCA\Files\Capabilities;
use OCA\Files\Collaboration\Resources\Listener;
use OCA\Files\Collaboration\Resources\ResourceProvider;
Expand Down Expand Up @@ -45,7 +44,6 @@
use OCP\IConfig;
use OCP\IPreview;
use OCP\IRequest;
use OCP\ISearch;
use OCP\IServerContainer;
use OCP\ITagManager;
use OCP\IUserSession;
Expand Down Expand Up @@ -127,7 +125,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 @@ -136,10 +133,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
273 changes: 0 additions & 273 deletions build/integration/comments_features/comments-search.feature

This file was deleted.

46 changes: 0 additions & 46 deletions core/Controller/SearchController.php

This file was deleted.

Loading

0 comments on commit a6d421e

Please sign in to comment.