Skip to content

Commit

Permalink
chore: Remove legacy reference provider
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 Mar 12, 2024
1 parent eb4d746 commit 486227e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 79 deletions.
13 changes: 1 addition & 12 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use OCA\Tables\Listener\TablesReferenceListener;
use OCA\Tables\Listener\UserDeletedListener;
use OCA\Tables\Reference\ContentReferenceProvider;
use OCA\Tables\Reference\LegacyReferenceProvider;
use OCA\Tables\Reference\ReferenceProvider;
use OCA\Tables\Search\SearchTablesProvider;
use OCP\AppFramework\App;
Expand Down Expand Up @@ -52,17 +51,7 @@ public function register(IRegistrationContext $context): void {

$context->registerSearchProvider(SearchTablesProvider::class);

try {
/** @var IConfig $config */
$config = Server::get(IConfig::class);
if (version_compare($config->getSystemValueString('version', '0.0.0'), '26.0.0', '<')) {
$context->registerReferenceProvider(LegacyReferenceProvider::class);
} else {
$context->registerReferenceProvider(ReferenceProvider::class);
}
$context->registerReferenceProvider(ContentReferenceProvider::class);
} catch (NotFoundExceptionInterface|ContainerExceptionInterface $e) {
}
$context->registerReferenceProvider(ReferenceProvider::class);

$context->registerCapability(Capabilities::class);
}
Expand Down
67 changes: 0 additions & 67 deletions lib/Reference/LegacyReferenceProvider.php

This file was deleted.

0 comments on commit 486227e

Please sign in to comment.